diff options
author | Tapani Pälli <[email protected]> | 2018-05-09 09:12:32 +0300 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2018-05-24 12:53:07 +0300 |
commit | 3ddcdcf94d79a01728b45ccf4f1131e208375544 (patch) | |
tree | b3b903fdd640d5e62ba5331066540152ec60e381 /src/mesa/main/context.h | |
parent | 046b2b651e41b1e1f6ba32fdb04b2caac6b46e65 (diff) |
mesa: changes to expose OES_texture_view extension
Functionality already covered by ARB_texture_view, patch also
adds missing 'gles guard' for enums (added in f1563e6392).
Tested via arb_texture_view.*_gles3 tests and individual app
utilizing texture view with ETC2.
Signed-off-by: Tapani Pälli <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/context.h')
-rw-r--r-- | src/mesa/main/context.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h index ef06540e9ba..77520f678ff 100644 --- a/src/mesa/main/context.h +++ b/src/mesa/main/context.h @@ -362,6 +362,13 @@ _mesa_has_texture_cube_map_array(const struct gl_context *ctx) _mesa_has_OES_texture_cube_map_array(ctx); } +static inline bool +_mesa_has_texture_view(const struct gl_context *ctx) +{ + return _mesa_has_ARB_texture_view(ctx) || + _mesa_has_OES_texture_view(ctx); +} + #ifdef __cplusplus } #endif |