diff options
author | Rob Clark <robclark@freedesktop.org> | 2015-09-09 14:57:15 -0400 |
---|---|---|
committer | Rob Clark <robclark@freedesktop.org> | 2015-09-17 19:57:21 -0400 |
commit | 509e0c4505813ebeaad1c95822156ed2df627487 (patch) | |
tree | e0df1d29f1dc4a329653f34178056437ddfaccbf /src/glsl/Makefile.sources | |
parent | 53671a37238fd34f08d91d5d079d26437f21a473 (diff) | |
download | external_mesa3d-509e0c4505813ebeaad1c95822156ed2df627487.zip external_mesa3d-509e0c4505813ebeaad1c95822156ed2df627487.tar.gz external_mesa3d-509e0c4505813ebeaad1c95822156ed2df627487.tar.bz2 |
nir: add lowering stage for user-clip-planes / clipdist
The vertex shader lowering adds calculation for CLIPDIST, if needed
(ie. user-clip-planes), and the frag shader lowering adds conditional
kills based on CLIPDIST value (which should be treated as a normal
interpolated varying by the driver).
Note that this won't quite do the right thing in the face of MSAA plus
user-clip-planes, since all the samples would be killed or not (rather
than potentially only a portion of them). But it's better than no UCP
support at all for drivers that don't have this in hw.
Signed-off-by: Rob Clark <robclark@freedesktop.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/glsl/Makefile.sources')
-rw-r--r-- | src/glsl/Makefile.sources | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/Makefile.sources b/src/glsl/Makefile.sources index 07877bb..5134ab7 100644 --- a/src/glsl/Makefile.sources +++ b/src/glsl/Makefile.sources @@ -35,6 +35,7 @@ NIR_FILES = \ nir/nir_live_variables.c \ nir/nir_lower_alu_to_scalar.c \ nir/nir_lower_atomics.c \ + nir/nir_lower_clip.c \ nir/nir_lower_global_vars_to_local.c \ nir/nir_lower_load_const_to_scalar.c \ nir/nir_lower_locals_to_regs.c \ |