mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
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@collabora.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
793f6b30d9
commit
3a71e1d27b
1 changed files with 12 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue