mesa: Add MESA_FORMAT_{A8R8G8B8, X8R8G8B8, X8B8G8R8}_SRGB (v2)
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Tue, 22 Jul 2014 10:02:10 +0000 (11:02 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 17 Sep 2014 03:19:45 +0000 (13:19 +1000)
commitbe6ef203aafd52fce532c8dae47be75f1d5252a0
tree2d2bc7ca2801beb9dafd00b1982ce23fcca62baf
parentdf14091c5857dc398521aaa9ff43bbbaee2d6116
mesa: Add MESA_FORMAT_{A8R8G8B8, X8R8G8B8, X8B8G8R8}_SRGB (v2)

This means that each 8888 SRGB format has a reversed counterpart,
which is necessary for handling big-endian mesa<->gallium mappings.

v2: fix missing i965 additions. (Jason)
fix 127->255 max alpha for SRGB formats. (Jason)

v1: Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Signed-off-by: Richard Sandiford <rsandifo@linux.vnet.ibm.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/drivers/dri/i965/brw_surface_formats.c
src/mesa/main/format_pack.c
src/mesa/main/format_unpack.c
src/mesa/main/formats.c
src/mesa/main/formats.csv
src/mesa/main/formats.h
src/mesa/main/texformat.c
src/mesa/swrast/s_texfetch.c
src/mesa/swrast/s_texfetch_tmp.h