aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2019-10-14 01:20:20 -0700
committerKenneth Graunke <[email protected]>2019-10-14 09:48:36 -0700
commitac7af7c50057f4b72ec058fd08b6f40db595e489 (patch)
tree8ef9bb53af9ee823be9663d1ca9f00f28f3d8509 /src
parent58286c79696e191d556688c3efe26d67749dfd00 (diff)
iris: Implement the Gen < 9 tessellation quads workaround
Fixes several CTS tests: - KHR-GL46.tessellation_shader.vertex.vertex_spacing - KHR-GL46.tessellation_shader.tessellation_shader_point_mode.points_verification Fixes: 823609b1a39 ("iris/WIP: add broadwell support")
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/iris/iris_program.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_program.c b/src/gallium/drivers/iris/iris_program.c
index 2670bc28579..fbf6d685382 100644
--- a/src/gallium/drivers/iris/iris_program.c
+++ b/src/gallium/drivers/iris/iris_program.c
@@ -1230,6 +1230,9 @@ iris_update_compiled_tcs(struct iris_context *ice)
.tes_primitive_mode = tes_info->tess.primitive_mode,
.input_vertices =
!tcs || compiler->use_tcs_8_patch ? ice->state.vertices_per_patch : 0,
+ .quads_workaround = devinfo->gen < 9 &&
+ tes_info->tess.primitive_mode == GL_QUADS &&
+ tes_info->tess.spacing == TESS_SPACING_EQUAL,
};
get_unified_tess_slots(ice, &key.outputs_written,
&key.patch_outputs_written);