[Mesa-dev] [PATCH v3 00/18] Enable support for 2D ASTC (LDR and HDR modes) in SKL

Nanley Chery nanleychery at gmail.com
Mon Jun 22 16:02:06 PDT 2015


From: Nanley Chery <nanley.g.chery at intel.com>

This patch series enables support for the KHR_texture_compression_astc_{ldr,hdr}
extensions on Skylake machines. This revision includes developer suggestions and
fixes rendering issues on previously untested systems. The sRGB issues were
fixed and determined to be unrelated to this patchset.

The Piglit tests for this extension can be found here:
cgit.freedesktop.org/~nchery/piglit

Nanley Chery (18):
  mesa/formats: define the 2D ASTC formats
  glapi: add support for KHR_texture_compression_astc_ldr
  mesa: disable online compression for ASTC formats
  mesa: return bool instead of GLboolean in
    compressedteximage_only_format()
  mesa: add ASTC extensions to the extensions table
  mesa/glformats: recognize ASTC formats as compressed
  mesa/texcompress: enable translation between MESA and GL ASTC formats
  mesa/teximage: return the base internal format of the ASTC formats
  mesa/formats: store whether or not a format is sRGB in gl_format_info
  i965/surface_formats: add support for 2D ASTC surface formats
  mesa/macros: add power-of-two assertions for alignment macros
  mesa/macros: move ALIGN_NPOT to macros.h
  i965: use ALIGN_NPOT for setting ASTC mipmap layouts
  i965: correct mt->align_h for 2D textures on Skylake
  i965: change the meaning of cpp for compressed textures
  i965: enable ASTC support for Skylake
  i965: refactor miptree alignment calculation code
  swrast: add a new macro, FETCH_COMPRESSED

 .../glapi/gen/KHR_texture_compression_astc.xml     |  40 +++
 src/mapi/glapi/gen/Makefile.am                     |   1 +
 src/mapi/glapi/gen/gl_API.xml                      |   2 +-
 src/mesa/drivers/dri/i965/brw_defines.h            |  32 +++
 src/mesa/drivers/dri/i965/brw_fs_nir.cpp           |   2 +-
 src/mesa/drivers/dri/i965/brw_surface_formats.c    |  80 ++++++
 src/mesa/drivers/dri/i965/brw_tex_layout.c         | 105 ++++----
 src/mesa/drivers/dri/i965/intel_copy_image.c       |  19 +-
 src/mesa/drivers/dri/i965/intel_extensions.c       |   5 +
 src/mesa/drivers/dri/i965/intel_mipmap_tree.c      |  15 +-
 src/mesa/drivers/dri/i965/intel_mipmap_tree.h      |   2 +-
 src/mesa/drivers/dri/i965/intel_upload.c           |   6 -
 src/mesa/main/extensions.c                         |   2 +
 src/mesa/main/format_info.py                       |   5 +
 src/mesa/main/formats.c                            | 158 ++++++++++--
 src/mesa/main/formats.csv                          |  31 +++
 src/mesa/main/formats.h                            |  30 +++
 src/mesa/main/glformats.c                          |  29 +++
 src/mesa/main/macros.h                             |  22 +-
 src/mesa/main/mtypes.h                             |   2 +
 src/mesa/main/texcompress.c                        | 136 +++++++++++
 src/mesa/main/teximage.c                           |  70 +++++-
 src/mesa/swrast/s_texfetch.c                       | 269 ++++++---------------
 23 files changed, 736 insertions(+), 327 deletions(-)
 create mode 100644 src/mapi/glapi/gen/KHR_texture_compression_astc.xml

-- 
2.4.2



More information about the mesa-dev mailing list