nir: add lowering pass for clip plane enabling

Graphics / Mesa 3D Graphics Library / Mesa - Mike Blumenkrantz [gmail.com] - 3 July 2020 08:56 UTC

a pass which rewrites gl_ClipDistance[n] to an undef if the corresponding clip plane is disabled in the rasterizer state

this pass is needed for zink to handle api disables of clip planes

fb2fe802f63 nir: add lowering pass for clip plane enabling
src/compiler/nir/meson.build | 1 +
src/compiler/nir/nir.h | 1 +
src/compiler/nir/nir_lower_clip_disable.c | 131 ++++++++++++++++++++++++++++++
3 files changed, 133 insertions(+)

Upstream: cgit.freedesktop.org


  • Share