[Mesa-dev] [PATCH 0/5] GL_OES_required_internalformat

Eric Anholt eric at anholt.net
Tue May 2 19:33:02 UTC 2017


This series came out of fixing dEQP failures on vc4's GLES2 context.
Mesa was allowing RGB565 textures, which is only valid with
GL_OES_required_internalformat.  Rather than disable RGB565, I decided
the extension was easy enough to support.

I've sent one piglit test for renderbuffer sizing, and dEQP has tests
for whether enums get accepted for TexImage.

There's a functional question in patch #2, see the comment there, and
there's a question of whether the extension should be dummy_true in
patch #5.

branch: https://github.com/anholt/mesa/commits/required-internalformat

Eric Anholt (5):
  mesa: Add X1B5G5R5 along with A1B5G5R5.
  gallium: Add support for 5551 with the 1-bit field in the low bit.
  vc4: Add support for 5551 textures.
  mesa: Only expose GLES's EXT_texture_type_2_10_10_10_REV if supported
    in HW.
  mesa: Expose GL_OES_required_internalformat on GLES contexts.

 docs/features.txt                            |  2 +-
 src/gallium/auxiliary/util/u_format.csv      |  2 +
 src/gallium/drivers/vc4/vc4_formats.c        |  5 +-
 src/gallium/drivers/vc4/vc4_uniforms.c       |  1 +
 src/gallium/include/pipe/p_format.h          |  3 ++
 src/mesa/drivers/dri/i965/intel_extensions.c |  1 +
 src/mesa/main/extensions_table.h             |  3 +-
 src/mesa/main/formats.c                      |  2 +
 src/mesa/main/formats.csv                    |  1 +
 src/mesa/main/formats.h                      |  1 +
 src/mesa/main/glformats.c                    | 78 ++++++++++++++++++++++++----
 src/mesa/main/mtypes.h                       |  1 +
 src/mesa/main/texformat.c                    |  1 +
 src/mesa/main/teximage.c                     | 31 ++++-------
 src/mesa/state_tracker/st_extensions.c       |  5 ++
 src/mesa/state_tracker/st_format.c           | 16 ++++--
 src/mesa/swrast/s_texfetch.c                 |  1 +
 17 files changed, 114 insertions(+), 40 deletions(-)

-- 
2.11.0



More information about the mesa-dev mailing list