add X8R8G8B8 <> XRGB8888 conversion

View: New views
2 Messages — Rating Filter:   Alert me  

add X8R8G8B8 <> XRGB8888 conversion

by Bugzilla from d.okias@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Fix nouveau glxinfo after merging texformat-rework.

This patch add forgot XRGB8888 <> X8R8G8B8 conversion.

Signed-off-by: David Heidelberger <d.okias@...>
---

--- a/src/mesa/state_tracker/st_format.c 2009-10-29 15:39:21.778200092 +0100
+++ b/src/mesa/state_tracker/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:

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@...
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Re: add X8R8G8B8 <> XRGB8888 conversion

by Brian Paul-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

okias wrote:
> Fix nouveau glxinfo after merging texformat-rework.

Committed.  Thanks.

-Brian


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@...
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev