i965: Add support for RGB565 __DRIimage
authorSingh, Satyeshwar <satyeshwar.singh@intel.com>
Wed, 16 Oct 2013 01:11:02 +0000 (01:11 +0000)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 16 Oct 2013 04:30:49 +0000 (21:30 -0700)
Add information for RGB565 to the table of image formats so that we can
create a __DRIimage for that format.  This in turn enables RGB565
wayland clients.

Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/drivers/dri/i965/intel_screen.c

index 1b5d8bd389df9764d3484368485fd210dc93cab4..5ec2dc4afc1df378f83c0f8c503beef8d09524f3 100644 (file)
@@ -213,6 +213,9 @@ static struct intel_image_format intel_image_formats[] = {
    { __DRI_IMAGE_FOURCC_XRGB8888, __DRI_IMAGE_COMPONENTS_RGB, 1,
      { { 0, 0, 0, __DRI_IMAGE_FORMAT_XRGB8888, 4 }, } },
 
+   { __DRI_IMAGE_FOURCC_RGB565, __DRI_IMAGE_COMPONENTS_RGB, 1,
+     { { 0, 0, 0, __DRI_IMAGE_FORMAT_RGB565, 2 } } },
+
    { __DRI_IMAGE_FOURCC_YUV410, __DRI_IMAGE_COMPONENTS_Y_U_V, 3,
      { { 0, 0, 0, __DRI_IMAGE_FORMAT_R8, 1 },
        { 1, 2, 2, __DRI_IMAGE_FORMAT_R8, 1 },