i965: fallback RGBX to RGBA in glEGLImageTargetRenderbufferStorageOES
authorChystiakov, Dmytro <dmytro.chystiakov@intel.com>
Wed, 3 Oct 2018 09:52:52 +0000 (12:52 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 8 Oct 2018 05:03:45 +0000 (08:03 +0300)
commit47e3338b04c145856b4a12da833e5d48f983daa5
tree27d5893ce85178e7f1c8ff44be6a7823579dfa17
parentd1fa69ed61d5aebeb69ce8a415c098035a953d48
i965: fallback RGBX to RGBA in glEGLImageTargetRenderbufferStorageOES

In the same fashion as is done for glEGLImageTextureTarget2D.

v2: share the fallback which sets baseformat and internalformat correctly
    which makes both of the tests pass (Tapani)

Fixes android.hardware.nativehardware.cts.AHardwareBufferNativeTests:

   #SingleLayer_ColorTest_GpuColorOutputCpuRead_R8G8B8X8_UNORM
   #SingleLayer_ColorTest_GpuColorOutputIsRenderable_R8G8B8X8_UNORM

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
src/mesa/drivers/dri/i965/intel_fbo.c