virgl/gbm: Add support for GBM_FORMAT_ABGR2101010

Fixes SingleLayer_ColorTest_CpuWriteColorGpuRead_R10G10B10A2_UNORM
on chromebook with CTS 11_r4.

Signed-off-by: Nataraj Deshpande <nataraj.deshpande@intel.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
macos/master
Nataraj Deshpande 3 years ago committed by Chia-I Wu
parent 02f8a0d2c9
commit d85bcfbb60
  1. 2
      src/vrend_winsys_gbm.c

@ -101,6 +101,7 @@ static const struct format_conversion conversions[] = {
{ GBM_FORMAT_RGB565, VIRGL_FORMAT_B5G6R5_UNORM },
{ GBM_FORMAT_ABGR8888, VIRGL_FORMAT_B8G8R8A8_UNORM },
{ GBM_FORMAT_XBGR8888, VIRGL_FORMAT_B8G8R8X8_UNORM },
{ GBM_FORMAT_ABGR2101010, VIRGL_FORMAT_R10G10B10A2_UNORM },
{ GBM_FORMAT_ABGR16161616F, VIRGL_FORMAT_R16G16B16A16_FLOAT },
{ GBM_FORMAT_NV12, VIRGL_FORMAT_NV12 },
{ GBM_FORMAT_ABGR8888, VIRGL_FORMAT_R8G8B8A8_UNORM},
@ -184,6 +185,7 @@ static const struct planar_layout *layout_from_format(uint32_t format)
case GBM_FORMAT_XRGB8888:
case GBM_FORMAT_ABGR8888:
case GBM_FORMAT_XBGR8888:
case GBM_FORMAT_ABGR2101010:
return &packed_4bpp_layout;
case GBM_FORMAT_ABGR16161616F:
return &packed_8bpp_layout;

Loading…
Cancel
Save