iris: Add support for TCS passthrough

Graphics / Mesa 3D Graphics Library / Mesa - Caio Marcelo de Oliveira Filho [intel.com] - 21 February 2019 18:26 EST

If no TCS is provided, create a "passthrough" TCS that will take the default values set in the API as constants and pass to the TES, along with any other inputs it expects. The code to create the NIR shader is the same as in i965.

Tested with

./piglit run -t 'tess' quick_shader r

and fixed a dozen crashes from that list.

54e23442e24 iris: Add support for TCS passthrough
src/gallium/drivers/iris/iris_context.h | 3 ++
src/gallium/drivers/iris/iris_program.c | 51 +++++++++++++++------------
src/gallium/drivers/iris/iris_state.c | 62 ++++++++++++++++++++++++++++++++-
3 files changed, 93 insertions(+), 23 deletions(-)

Upstream: cgit.freedesktop.org


  • Share