From 3160ec353e62fb9fea2ea8a0439f5973b57adcac Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Sat, 14 Sep 2013 23:31:08 -0700 Subject: dri: Add __DRIimage support for the ARGB2101010 format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We add support for the ARGB2101010 color format to the DRI image extension, which allows DRI loaders to create a __DRIimage with this color format. Signed-off-by: Kristian Høgsberg --- src/mesa/drivers/dri/i965/intel_screen.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/mesa') diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c index 2912291cfd0..eadd9a670ae 100644 --- a/src/mesa/drivers/dri/i965/intel_screen.c +++ b/src/mesa/drivers/dri/i965/intel_screen.c @@ -296,6 +296,12 @@ intel_allocate_image(int dri_format, void *loaderPrivate) case __DRI_IMAGE_FORMAT_XRGB8888: image->format = MESA_FORMAT_XRGB8888; break; + case __DRI_IMAGE_FORMAT_ARGB2101010: + image->format = MESA_FORMAT_ARGB2101010; + break; + case __DRI_IMAGE_FORMAT_XRGB2101010: + image->format = MESA_FORMAT_XRGB2101010_UNORM; + break; case __DRI_IMAGE_FORMAT_ARGB8888: image->format = MESA_FORMAT_ARGB8888; break; @@ -382,6 +388,10 @@ intel_dri_format(GLuint format) return __DRI_IMAGE_FORMAT_R8; case MESA_FORMAT_RG88: return __DRI_IMAGE_FORMAT_GR88; + case MESA_FORMAT_XRGB2101010_UNORM: + return __DRI_IMAGE_FORMAT_XRGB2101010; + case MESA_FORMAT_ARGB2101010: + return __DRI_IMAGE_FORMAT_ARGB2101010; } return MESA_FORMAT_NONE; -- cgit v1.2.3