[Nouveau] x8r8g8b8 fix after texformat-rework
okias
d.okias at gmail.com
Thu Oct 29 07:49:37 PDT 2009
This allow glxinfo to work without assert.
This patch add forgot XRGB8888 <> X8R8G8B8 conversion.
Signed-off-by: David Heidelberger <d.okias at gmail.com>
--- a/st_format.c 2009-10-29 15:39:21.778200092 +0100
+++ b/st_format.c 2009-10-29 15:33:08.150963668 +0100
@@ -218,6 +218,8 @@
case MESA_FORMAT_ARGB8888_REV:
case MESA_FORMAT_ARGB8888:
return PIPE_FORMAT_A8R8G8B8_UNORM;
+ case MESA_FORMAT_XRGB8888:
+ return PIPE_FORMAT_X8R8G8B8_UNORM;
case MESA_FORMAT_ARGB1555:
return PIPE_FORMAT_A1R5G5B5_UNORM;
case MESA_FORMAT_ARGB4444:
@@ -287,6 +289,8 @@
switch (pipeFormat) {
case PIPE_FORMAT_A8R8G8B8_UNORM:
return MESA_FORMAT_ARGB8888;
+ case PIPE_FORMAT_X8R8G8B8_UNORM:
+ return MESA_FORMAT_XRGB8888;
case PIPE_FORMAT_A1R5G5B5_UNORM:
return MESA_FORMAT_ARGB1555;
case PIPE_FORMAT_A4R4G4B4_UNORM:
@@ -698,6 +702,8 @@
switch (format) {
case PIPE_FORMAT_A8R8G8B8_UNORM:
return MESA_FORMAT_ARGB8888;
+ case PIPE_FORMAT_X8R8G8B8_UNORM:
+ return MESA_FORMAT_XRGB8888;
case PIPE_FORMAT_A1R5G5B5_UNORM:
return MESA_FORMAT_ARGB1555;
case PIPE_FORMAT_A4R4G4B4_UNORM:
--
Jabber/XMPP: okias at isgeek.info
SIP VoIP: sip:17474537254 at proxy01.sipphone.com
-------------- next part --------------
This patch add forgot XRGB8888 <> X8R8G8B8 conversion.
Signed-off-by: David Heidelberger <d.okias at gmail.com>
--- a/st_format.c 2009-10-29 15:39:21.778200092 +0100
+++ b/st_format.c 2009-10-29 15:33:08.150963668 +0100
@@ -218,6 +218,8 @@
case MESA_FORMAT_ARGB8888_REV:
case MESA_FORMAT_ARGB8888:
return PIPE_FORMAT_A8R8G8B8_UNORM;
+ case MESA_FORMAT_XRGB8888:
+ return PIPE_FORMAT_X8R8G8B8_UNORM;
case MESA_FORMAT_ARGB1555:
return PIPE_FORMAT_A1R5G5B5_UNORM;
case MESA_FORMAT_ARGB4444:
@@ -287,6 +289,8 @@
switch (pipeFormat) {
case PIPE_FORMAT_A8R8G8B8_UNORM:
return MESA_FORMAT_ARGB8888;
+ case PIPE_FORMAT_X8R8G8B8_UNORM:
+ return MESA_FORMAT_XRGB8888;
case PIPE_FORMAT_A1R5G5B5_UNORM:
return MESA_FORMAT_ARGB1555;
case PIPE_FORMAT_A4R4G4B4_UNORM:
@@ -698,6 +702,8 @@
switch (format) {
case PIPE_FORMAT_A8R8G8B8_UNORM:
return MESA_FORMAT_ARGB8888;
+ case PIPE_FORMAT_X8R8G8B8_UNORM:
+ return MESA_FORMAT_XRGB8888;
case PIPE_FORMAT_A1R5G5B5_UNORM:
return MESA_FORMAT_ARGB1555;
case PIPE_FORMAT_A4R4G4B4_UNORM:
More information about the Nouveau
mailing list