summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/iris/iris_screen.c
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <[email protected]>2018-09-19 10:17:23 -0700
committerKenneth Graunke <[email protected]>2019-02-21 10:26:08 -0800
commitfb4a3e2736885be0cbb9204f1b94a06792d01fa3 (patch)
tree4733cb1bd87a51faa7b5a517d1d9602e477459a4 /src/gallium/drivers/iris/iris_screen.c
parent2b956a093a184dd2971cb6b08053e0d65d3eeacf (diff)
iris: Fix uses of gl_TessLevel*
The backend compiler expects the gl_TessLevel* variables to be mapped as inputs instead of system values. Use the new PIPE_CAP to get this behavior from GLSL compiler. Tested with: tests/spec/arb_tessellation_shader/execution/vs-tcs-tes-tessinner-tessouter-inputs-quads.shader_test
Diffstat (limited to 'src/gallium/drivers/iris/iris_screen.c')
-rw-r--r--src/gallium/drivers/iris/iris_screen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_screen.c b/src/gallium/drivers/iris/iris_screen.c
index 8d124d739f8..29a31c91410 100644
--- a/src/gallium/drivers/iris/iris_screen.c
+++ b/src/gallium/drivers/iris/iris_screen.c
@@ -163,6 +163,7 @@ iris_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
case PIPE_CAP_TGSI_VS_WINDOW_SPACE_POSITION:
case PIPE_CAP_TEXTURE_GATHER_SM5:
case PIPE_CAP_TGSI_ARRAY_COMPONENTS:
+ case PIPE_CAP_GLSL_TESS_LEVELS_AS_INPUTS:
return true;
case PIPE_CAP_MAX_DUAL_SOURCE_RENDER_TARGETS: