diff options
author | Chad Versace <[email protected]> | 2012-06-18 18:25:25 -0700 |
---|---|---|
committer | Chad Versace <[email protected]> | 2012-07-16 14:11:12 -0700 |
commit | a5a34b153d494ad4374e7b2c8ea13b1073a887e2 (patch) | |
tree | d2fd53dd8e1a34c04fd5493c3d4bdd67c8b38117 /src/mesa/drivers/dri/intel/intel_mipmap_tree.h | |
parent | 8ec721264c7ae0f73a520362963b2691bf098b9b (diff) |
intel: Enable GL_OES_compressed_ETC1_RGB8_texture
Enable it for all hardware.
No current hardware supports ETC1, so this patch implements it by
translating the ETC1 data to RGBX data during the call to
glCompressedTexImage2D(). For details, see the doxygen for
intel_mipmap_tree::wraps_etc1.
Passes the Piglit test spec/OES_compressed_ETC1_RGB8_texture/miptree and
the ETC1 test in the GLES2 conformance suite.
Reviewed-by: Kenneth Graunke <[email protected]>
Signed-off-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_mipmap_tree.h')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_mipmap_tree.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_mipmap_tree.h b/src/mesa/drivers/dri/intel/intel_mipmap_tree.h index 74fcc796cf5..2fb5775c02f 100644 --- a/src/mesa/drivers/dri/intel/intel_mipmap_tree.h +++ b/src/mesa/drivers/dri/intel/intel_mipmap_tree.h @@ -190,6 +190,9 @@ struct intel_mipmap_tree * MESA_FORMAT_Z32_FLOAT_X24S8, then mt->format will be * MESA_FORMAT_Z32_FLOAT, otherwise for MESA_FORMAT_S8_Z24 objects it will be * MESA_FORMAT_X8_Z24. + * + * For ETC1 textures, this is MESA_FORMAT_RGBX8888_REV if the hardware + * lacks support for ETC1. See @ref wraps_etc1. */ gl_format format; |