summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/context.h
diff options
context:
space:
mode:
authorTapani Pälli <[email protected]>2018-05-09 09:12:32 +0300
committerTapani Pälli <[email protected]>2018-05-24 12:53:07 +0300
commit3ddcdcf94d79a01728b45ccf4f1131e208375544 (patch)
treeb3b903fdd640d5e62ba5331066540152ec60e381 /src/mesa/main/context.h
parent046b2b651e41b1e1f6ba32fdb04b2caac6b46e65 (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.h7
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