[Mesa-dev] [PATCH v2 0/7] Fix handling of 8-bits-per-channel SRGB and SNORM formats

Richard Sandiford rsandifo at linux.vnet.ibm.com
Tue Jul 22 03:02:04 PDT 2014


> Similar to the L/A and R/G series I just posted, this one fixes the SNORM
> and SRGB 8888 formats.  The UNORM ones were done last year as part of the
> original big-endian work.

v2, with subject lines fixed to include the "component:" bit.  No code changes
from v1.

Richard Sandiford (7):
  util: Add PIPE_FORMAT_x8B8G8R8_SNORM formats
  util: Define PIPE_FORMAT_xyzw8888_{SNORM,SRGB} aliases
  mesa: Tweak unpack name for MESA_FORMAT_R8G8B8X8_SNORM
  mesa: Fix alpha component in unpack_R8G8B8X8_SRGB.
  mesa: Fix _mesa_texstore_signed_rgb?8888 for big-endian.
  mesa: Add MESA_FORMAT_{A8R8G8B8,X8R8G8B8,X8B8G8R8}_SRGB
  st/mesa: Fix handling of 8888 SNORM and SRGB formats for big-endian

 src/gallium/auxiliary/util/u_format.csv         |  3 ++
 src/gallium/include/pipe/p_format.h             | 27 +++++++++++
 src/mesa/drivers/dri/i965/brw_surface_formats.c |  1 +
 src/mesa/main/format_pack.c                     | 60 +++++++++++++++++++++++++
 src/mesa/main/format_unpack.c                   | 48 ++++++++++++++++++--
 src/mesa/main/formats.c                         | 45 +++++++++++++++++++
 src/mesa/main/formats.h                         |  3 ++
 src/mesa/main/texformat.c                       | 10 +++++
 src/mesa/main/texstore.c                        | 14 ++++--
 src/mesa/state_tracker/st_format.c              | 52 ++++++++++++++-------
 src/mesa/swrast/s_texfetch.c                    |  3 ++
 src/mesa/swrast/s_texfetch_tmp.h                | 24 ++++++++++
 12 files changed, 268 insertions(+), 22 deletions(-)

-- 
1.8.3.1



More information about the mesa-dev mailing list