[Mesa-dev] [PATCH 0/3] i965: Fix dEQP-EGL.functional.image.modify.tex_rgb5_a1_tex_subimage_rgba8

Chad Versace chadversary at chromium.org
Thu Dec 22 23:22:28 UTC 2016


The test failed because in
glTexImage2D(format=GL_RGBA, type=GL_UNSIGNED_SHORT_5_5_5_1)
Mesa chose BRW_SURFACE_FORMAT_R8G8B8A8_UNORM as the storage format.
The two formats have incompatible precision in the alpha channel. One
provides binary alpha; the other provides gradient alpha.

Intel hardware supports BRW_SURFACE_FORMAT_B5G5R5A1_UNORM, so teach
glTexImage2D to choose that instead.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99185

Chad Versace (3):
  dri: Add __DRI_IMAGE_FORMAT_ARGB1555
  mesa/texformat: Handle GL_RGBA + GL_UNSIGNED_SHORT_5_5_5_1
  i965: Allow import/export of ARGB1555 images

 include/GL/internal/dri_interface.h      | 2 ++
 src/mesa/drivers/dri/common/dri_util.c   | 4 ++++
 src/mesa/drivers/dri/i965/intel_screen.c | 6 ++++++
 src/mesa/main/texformat.c                | 2 ++
 4 files changed, 14 insertions(+)

-- 
2.11.0



More information about the mesa-dev mailing list