nir/zink: move clip_halfz-lowering to common code
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Sun, 15 Dec 2019 17:03:49 +0000 (18:03 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 3 Jan 2020 22:48:19 +0000 (22:48 +0000)
commitd9ff5f0414946a493692b1f82338d006aa1f7df2
treead34aaaf9589b824287bae6ca62ad28526e1a039
parent5c2376af63059bc683438af652e8fc161e2a92d8
nir/zink: move clip_halfz-lowering to common code

Etnaviv also does the same thing, so let's try to avoid repetition here,
and use the same for it code as well.

Reviewed-by: Jonathan Marek <jonathan@marek.ca>
Tested-by: Paul Cercueil <paul@crapouillou.net>
src/compiler/Makefile.sources
src/compiler/nir/meson.build
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_clip_halfz.c [new file with mode: 0644]
src/gallium/drivers/zink/zink_compiler.c