i965: Allow import/export of ARGB1555 images
authorChad Versace <chadversary@chromium.org>
Thu, 22 Dec 2016 23:00:12 +0000 (15:00 -0800)
committerChad Versace <chadversary@chromium.org>
Tue, 27 Dec 2016 17:14:04 +0000 (09:14 -0800)
To my knowledge, this fixes no tests. I simply wrote the patch for
completeness as a follow-up to the previous two patches.

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/mesa/drivers/dri/i965/intel_screen.c

index e1c3c19ec89b7226101148e25f6a1d929d4de65c..d0e3ac6875e4b62b26f02d976390ac81e92305ee 100644 (file)
@@ -230,6 +230,9 @@ static struct intel_image_format intel_image_formats[] = {
    { __DRI_IMAGE_FOURCC_XBGR8888, __DRI_IMAGE_COMPONENTS_RGB, 1,
      { { 0, 0, 0, __DRI_IMAGE_FORMAT_XBGR8888, 4 }, } },
 
+   { __DRI_IMAGE_FOURCC_ARGB1555, __DRI_IMAGE_COMPONENTS_RGBA, 1,
+     { { 0, 0, 0, __DRI_IMAGE_FORMAT_ARGB1555, 2 } } },
+
    { __DRI_IMAGE_FOURCC_RGB565, __DRI_IMAGE_COMPONENTS_RGB, 1,
      { { 0, 0, 0, __DRI_IMAGE_FORMAT_RGB565, 2 } } },