st/dri: add support for __DRI_IMAGE_FORMAT_ABGR8888
authorChia-I Wu <olv@lunarg.com>
Sun, 21 Aug 2011 13:39:34 +0000 (21:39 +0800)
committerChia-I Wu <olv@lunarg.com>
Fri, 9 Sep 2011 04:06:17 +0000 (12:06 +0800)
It maps to PIPE_FORMAT_R8G8B8A8_UNORM.

src/gallium/state_trackers/dri/drm/dri2.c

index 6cf237577ec5ba8f2a065c6aa9d6abd3938b9cce..2b6919ddd0b03fd3327d32de462b9f122de3f7cb 100644 (file)
@@ -419,6 +419,9 @@ dri2_create_image_from_name(__DRIscreen *_screen,
    case __DRI_IMAGE_FORMAT_ARGB8888:
       pf = PIPE_FORMAT_B8G8R8A8_UNORM;
       break;
+   case __DRI_IMAGE_FORMAT_ABGR8888:
+      pf = PIPE_FORMAT_R8G8B8A8_UNORM;
+      break;
    default:
       pf = PIPE_FORMAT_NONE;
       break;
@@ -503,6 +506,9 @@ dri2_create_image(__DRIscreen *_screen,
    case __DRI_IMAGE_FORMAT_ARGB8888:
       pf = PIPE_FORMAT_B8G8R8A8_UNORM;
       break;
+   case __DRI_IMAGE_FORMAT_ABGR8888:
+      pf = PIPE_FORMAT_R8G8B8A8_UNORM;
+      break;
    default:
       pf = PIPE_FORMAT_NONE;
       break;