Mesa (master): mesa/main: simplify pipeline-statistics query validation
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Nov 23 09:48:59 UTC 2018
Module: Mesa
Branch: master
Commit: 9c13ad0ea403fa8699b505c05db6d4c0aeb870a6
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9c13ad0ea403fa8699b505c05db6d4c0aeb870a6
Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date: Wed Nov 7 13:40:30 2018 +0100
mesa/main: simplify pipeline-statistics query validation
The _mesa_has_ARB_pipeline_statistics_query(ctx)-helper will already
check the GLES-version according to the extension-table, so if this
extension would ever be back-ported to ES, we only need to update the
table to support this.
This shouln't have any functional effect.
Signed-off-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
---
src/mesa/main/queryobj.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/mesa/main/queryobj.c b/src/mesa/main/queryobj.c
index 2a143191c6..96b1c6bb30 100644
--- a/src/mesa/main/queryobj.c
+++ b/src/mesa/main/queryobj.c
@@ -149,8 +149,7 @@ get_pipe_stats_binding_point(struct gl_context *ctx,
const int which = target - GL_VERTICES_SUBMITTED;
assert(which < MAX_PIPELINE_STATISTICS);
- if (!_mesa_is_desktop_gl(ctx) ||
- !ctx->Extensions.ARB_pipeline_statistics_query)
+ if (!_mesa_has_ARB_pipeline_statistics_query(ctx))
return NULL;
return &ctx->Query.pipeline_stats[which];
More information about the mesa-commit
mailing list