diff options
author | Chia-I Wu <[email protected]> | 2011-08-21 21:39:34 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2011-09-09 12:06:17 +0800 |
commit | 4f341ee65a7f9017481108861adaf1ed2ca227c5 (patch) | |
tree | 114596843a0fd971c84382109386cfd3ab8c350f /src/gallium/state_trackers | |
parent | 9fe197c62611815ebe74248033271ad9fd07ae06 (diff) |
st/dri: add support for __DRI_IMAGE_FORMAT_ABGR8888
It maps to PIPE_FORMAT_R8G8B8A8_UNORM.
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/dri/drm/dri2.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c index 6cf237577ec..2b6919ddd0b 100644 --- a/src/gallium/state_trackers/dri/drm/dri2.c +++ b/src/gallium/state_trackers/dri/drm/dri2.c @@ -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; |