Mesa (master): mesa/st: assert that lowering is supported
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Oct 22 12:43:28 UTC 2019
Module: Mesa
Branch: master
Commit: 3a71e1d27b041853d5cb5c56c2f143a2e18d476f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3a71e1d27b041853d5cb5c56c2f143a2e18d476f
Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date: Fri Oct 18 14:29:26 2019 +0200
mesa/st: assert that lowering is supported
Some of these lowerings aren't supported for drivers that supports
tesselation and geometry shaders. Let's add a couple of asserts to make
it obvious if these have been enabled when it's not possible.
Signed-off-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
---
src/mesa/state_tracker/st_context.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c
index b54afce0d78..5549d2564d5 100644
--- a/src/mesa/state_tracker/st_context.c
+++ b/src/mesa/state_tracker/st_context.c
@@ -702,6 +702,18 @@ st_create_context_priv(struct gl_context *ctx, struct pipe_context *pipe,
st_init_extensions(pipe->screen, &ctx->Const,
&ctx->Extensions, &st->options, ctx->API);
+ /* FIXME: add support for geometry and tessellation shaders for
+ * lower_point_size
+ */
+ assert(!ctx->Extensions.OES_geometry_shader || !st->lower_point_size);
+ assert(!ctx->Extensions.ARB_tessellation_shader || !st->lower_point_size);
+
+ /* FIXME: add support for geometry and tessellation shaders for
+ * lower_ucp
+ */
+ assert(!ctx->Extensions.OES_geometry_shader || !st->lower_ucp);
+ assert(!ctx->Extensions.ARB_tessellation_shader || !st->lower_ucp);
+
if (st_have_perfmon(st)) {
ctx->Extensions.AMD_performance_monitor = GL_TRUE;
}
More information about the mesa-commit
mailing list