i965: setup sized internalformat for MESA_FORMAT_R10G10B10A2_UNORM
authorTapani Pälli <tapani.palli@intel.com>
Fri, 11 Oct 2019 06:42:21 +0000 (09:42 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 28 Oct 2019 05:13:10 +0000 (07:13 +0200)
commit412badd059de6f55cbcab10a55d052986a74b4cd
treedffc101bf79bcf9bc185ba5e9b2b9fc601217cfd
parent32cff3781aff6ea8b530d0a2b95b7bc2bee73eee
i965: setup sized internalformat for MESA_FORMAT_R10G10B10A2_UNORM

Commit d2b60e433e5 introduced restrictions (as per GLES spec) on the
internal format. We need to setup a sized format for the texture image
so framebuffers created with that are considered complete.

This change fixes following Android CTS test in AHardwareBufferNativeTests
category:

   SingleLayer_ColorTest_GpuColorOutputAndSampledImage_R10G10B10A2_UNORM

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Fixes: d2b60e433e5 ("mesa/main: R10G10B10_(A2) formats are not color renderable in ES")
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/intel_tex_image.c