[Bug 41263] [r600g] glCopyTexImage2D selects a texture format that involves fallback to software

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Sep 28 10:28:32 PDT 2011


https://bugs.freedesktop.org/show_bug.cgi?id=41263

--- Comment #3 from Simon Farnsworth <simon.farnsworth at onelan.co.uk> 2011-09-28 10:28:33 PDT ---
And I have confirmation that it's about choice of texture formats: the
following patch "fixes" the bug for me (no doubt by adding hundreds more for
other people).

diff --git a/src/mesa/state_tracker/st_format.c
b/src/mesa/state_tracker/st_format.c
index 6eb8a50..a310762 100644
--- a/src/mesa/state_tracker/st_format.c
+++ b/src/mesa/state_tracker/st_format.c
@@ -616,10 +616,10 @@ struct format_mapping
       0

 #define DEFAULT_RGB_FORMATS \
+      PIPE_FORMAT_B8G8R8A8_UNORM, \
       PIPE_FORMAT_B8G8R8X8_UNORM, \
       PIPE_FORMAT_X8R8G8B8_UNORM, \
       PIPE_FORMAT_X8B8G8R8_UNORM, \
-      PIPE_FORMAT_B8G8R8A8_UNORM, \
       PIPE_FORMAT_A8R8G8B8_UNORM, \
       PIPE_FORMAT_A8B8G8R8_UNORM, \
       PIPE_FORMAT_B5G6R5_UNORM, \

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the dri-devel mailing list