Mesa (staging/19.2): iris: Implement the Gen < 9 tessellation quads workaround

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Oct 14 18:17:40 UTC 2019


Module: Mesa
Branch: staging/19.2
Commit: 91960ae890cfc41c122cde4f0179d3b647d83e77
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=91960ae890cfc41c122cde4f0179d3b647d83e77

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Mon Oct 14 01:20:20 2019 -0700

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")
(cherry picked from commit ac7af7c50057f4b72ec058fd08b6f40db595e489)

---

 src/gallium/drivers/iris/iris_program.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/drivers/iris/iris_program.c b/src/gallium/drivers/iris/iris_program.c
index fc73849a24a..6e6848d189d 100644
--- a/src/gallium/drivers/iris/iris_program.c
+++ b/src/gallium/drivers/iris/iris_program.c
@@ -1227,6 +1227,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);




More information about the mesa-commit mailing list