nir: support lowering clipdist to arrays
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 2 Oct 2019 20:19:08 +0000 (16:19 -0400)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 17 Oct 2019 08:41:36 +0000 (10:41 +0200)
commiteb3047c094abfa03e071453d7c373e9c2c574370
tree2be3fea726a40dc3334160ce8b72e83eb66439f0
parent28543f1640d459404413c244740291fe68a75a5c
nir: support lowering clipdist to arrays

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.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/broadcom/compiler/vir.c
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_clip.c
src/freedreno/ir3/ir3_nir.c
src/gallium/drivers/iris/iris_program.c
src/gallium/drivers/vc4/vc4_program.c
src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp