Bug 41170 - [RV250Lf] Unexpected texture format in radeon_update_wrapper()
Summary: [RV250Lf] Unexpected texture format in radeon_update_wrapper()
Status: NEW
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/r200 (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL: http://bugs.winehq.org/show_bug.cgi?i...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-24 06:41 UTC by Johannes Obermayr
Modified: 2012-01-27 05:07 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
output from banshee session with RADEON_DEBUG=tex (11.21 KB, application/x-gzip)
2011-12-09 06:47 UTC, Marco Albanese
Details
Banshee crash with the patch in radeon_fbo.c (2.57 KB, application/x-gzip)
2011-12-10 03:12 UTC, Marco Albanese
Details
'grep radeon_update_wrapper' from debug build (9.26 KB, text/plain)
2011-12-22 12:35 UTC, Johannes Obermayr
Details

Description Johannes Obermayr 2011-09-24 06:41:37 UTC
Occurs when trying to start Need for Speed Most Wanted (NFSMW) which has only black screen.

Log: http://bugs2.winehq.org/attachment.cgi?id=35515
Comment 1 Johannes Obermayr 2011-09-25 11:15:12 UTC
From the log:
> Mesa 7.12-devel implementation error: Unexpected texture format in radeon_update_wrapper()
> Please report at bugs.freedesktop.org
This also happens with the wine tests. I wanted to add this on the Mesa bug,
but I don't have my password at the moment(different keychain). For the Mesa
devs debugging the tests may be easier than debugging NFS:MW.

(see: http://bugs.winehq.org/show_bug.cgi?id=22459#c6)
Comment 2 Marco Albanese 2011-12-09 02:35:24 UTC
I've the same bug when using ClutterFlow extension on banshee on my Radeon Mobility 7500 ( RV200, R100 chip).

It make the application crash when I hide the ClutterFlow interface, until then it works as expected.

Let me know if you need more information or I've to fill a new bug since the chip is differend (but IIRC the module is the same).
Comment 3 Marco Albanese 2011-12-09 02:37:09 UTC
Sorry, I forget to say, I'm using Mesa 7.11.1 on an updated Debian Testing with Gnome3.2 fallback and compiz.
Comment 4 Alex Deucher 2011-12-09 06:20:08 UTC
Can you try running it with the RADEON_DEBUG=tex env var set and attach the output?
Comment 5 Marco Albanese 2011-12-09 06:47:01 UTC
Created attachment 54269 [details]
output from banshee session with RADEON_DEBUG=tex

The step I've done to reproduce the crash:
1) Open banshee with the ClutterFlow extension enabled but hidden
2) Show the ClutterFlow Panel
3) Hide the ClutterFlow Panel
Comment 6 Alex Deucher 2011-12-09 06:58:19 UTC
argh, the output from the function I wanted it TRACE level only.  Can you attach the output of this patch:

diff --git a/src/mesa/drivers/dri/radeon/radeon_fbo.c b/src/mesa/drivers/dri/radeon/radeon_fbo.c
index 3140657..5badadd 100644
--- a/src/mesa/drivers/dri/radeon/radeon_fbo.c
+++ b/src/mesa/drivers/dri/radeon/radeon_fbo.c
@@ -854,6 +854,8 @@ radeon_update_wrapper(struct gl_context *ctx, struct radeon_renderbuffer *rrb,
                        rrb->base.DataType = GL_UNSIGNED_INT_24_8_EXT;
                        break;
                default:
+                       fprintf("%s(%p, rrb %p, texImage %p, texFormat %s) \n",
+                               __func__, ctx, rrb, texImage, _mesa_get_format_name(texImage->TexFormat));
                        _mesa_problem(ctx, "Unexpected texture format in radeon_update_wrapper()");
        }
Comment 7 Marco Albanese 2011-12-10 03:12:06 UTC
Created attachment 54287 [details]
Banshee crash with the patch in radeon_fbo.c

Sorry, it is the first time I rebuild a pkg on Debian. 

I've rebuild the whole mesa and installed only the package which contains radeon_dri ( which I suppose is build from radeon_fbo.c ), the pkg libgl1-mesa-dri.
However now, trying to show the ClutterFlow panel makes banshee crash.

Output attached.
Comment 8 Johannes Obermayr 2011-12-22 12:35:52 UTC
Created attachment 54712 [details]
'grep radeon_update_wrapper' from debug build

OpenGL version string: 1.3 Mesa 7.12-devel (9f8573b)

I hope this is enough. I can also provide the full log (~3.2 MiB uncompressed).


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.