nir: Support sysval tess levels in SPIR-V to NIR

Graphics / Mesa 3D Graphics Library / Mesa - Brian Ho [brkho.com] - 22 June 2020 14:35 UTC

This commit adds a tess_levels_are_sysvals flag to spirv_to_nir_options similar to GLSLTessLevelsAsInputs in the GLSL to NIR compiler options. This will be used by turnip as the tess IR3 lowering pass (ir3_nir_lower_tess) operates on TessLevelInner and TessLevelOuter in the DS as sysvals.

Part-of:

d2d4677b56e nir: Support sysval tess levels in SPIR-V to NIR
src/compiler/spirv/nir_spirv.h | 5 +++++
src/compiler/spirv/vtn_variables.c | 16 ++++++++++++++--
2 files changed, 19 insertions(+), 2 deletions(-)

Upstream: cgit.freedesktop.org


  • Share