nir: support lowering clipdist to arrays

Graphics / Mesa 3D Graphics Library / Mesa - Erik Faye-Lund [collabora.com] - 17 October 2019 08:41 EDT

This allows us to make sure clipdist is emitted as a scalar array rather than two vec4s. This matches SPIR-V semantics, and will be useful for Zink.

eb3047c094a nir: support lowering clipdist to arrays
src/broadcom/compiler/vir.c | 5 +-
src/compiler/nir/nir.h | 10 ++-
src/compiler/nir/nir_lower_clip.c | 99 ++++++++++++++++++--------
src/freedreno/ir3/ir3_nir.c | 4 +-
src/gallium/drivers/iris/iris_program.c | 8 ++-
src/gallium/drivers/vc4/vc4_program.c | 5 +-
src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp | 2 +-
7 files changed, 89 insertions(+), 44 deletions(-)

Upstream: cgit.freedesktop.org


  • Share