Series is
Reviewed-by: Tapani Pälli <tapani.pa...@intel.com>

On 12/23/2016 01:22 AM, Chad Versace wrote:
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(+)


_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to