diff options
author | Anuj Phogat <[email protected]> | 2016-07-07 17:03:19 -0700 |
---|---|---|
committer | Anuj Phogat <[email protected]> | 2016-07-18 14:39:54 -0700 |
commit | 15dea5ca82f45f9b1113e69fe2048b6f05ed426b (patch) | |
tree | 829df395c7d9dc02db52ef396b7becc236c10df6 /src/mesa/main/teximage.c | |
parent | 3e1ad846f9c2f3516861d03ba99c4cb22f5f1b6e (diff) |
mesa: Add the infrastructure for KHR_texture_compression_astc_sliced_3d
V2: Drop the changes to gl.xml.
Signed-off-by: Anuj Phogat <[email protected]>
Reviewed-by: Nanley Chery <[email protected]>
Diffstat (limited to 'src/mesa/main/teximage.c')
-rw-r--r-- | src/mesa/main/teximage.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index d74a45fb815..8869b3db389 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -1447,11 +1447,12 @@ _mesa_target_can_be_compressed(const struct gl_context *ctx, GLenum target, break; case MESA_FORMAT_LAYOUT_ASTC: target_can_be_compresed = - ctx->Extensions.KHR_texture_compression_astc_hdr; + ctx->Extensions.KHR_texture_compression_astc_hdr || + ctx->Extensions.KHR_texture_compression_astc_sliced_3d; /* Throw an INVALID_OPERATION error if the target is TEXTURE_3D and - * and the hdr extension is not supported. - * See comment in switch case GL_TEXTURE_CUBE_MAP_ARRAY for more info. + * neither of the above extensions are supported. See comment in + * switch case GL_TEXTURE_CUBE_MAP_ARRAY for more info. */ if (!target_can_be_compresed) return write_error(error, GL_INVALID_OPERATION); |