summaryrefslogtreecommitdiffstats
path: root/src/mesa/meson.build
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2019-06-05 15:39:41 +0200
committerGert Wollny <[email protected]>2019-08-01 05:58:53 +0000
commitb048d8bf8f056759d1845a799d4ba2ac84bce30f (patch)
treeef6c4b6f0abc8d662970ffdd497aa21057368f28 /src/mesa/meson.build
parent78ba12f40f79f94d082b7f32e121b3d149792bed (diff)
mesa/st: add tgsi-lowering code for depth-clamp
This is a TGSI pass that lowers depth-clamping into shader-operations, by replacing the depth-value with 0 (a z-coordinate of zero will always pass the OpenGL depth test conditions), and using a dedicated varying to interpolate the real depth-value instead. Finally we replace the depth-output in the fragment shader. v1 implemented by Erik Faye-Lund <[email protected]> v2: Add support for handling depth clip mode, and refactor code v3: - Rename *_vs functions to *_last_vertex_stage (Erik) - Use 0.0 depth to avoid clipping (Erik) v4: Fix inversion of bool value for clip control property Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/meson.build')
-rw-r--r--src/mesa/meson.build2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/meson.build b/src/mesa/meson.build
index 4a89358a267..563bdd7c103 100644
--- a/src/mesa/meson.build
+++ b/src/mesa/meson.build
@@ -600,6 +600,8 @@ files_libmesa_gallium = files(
'state_tracker/st_shader_cache.h',
'state_tracker/st_texture.c',
'state_tracker/st_texture.h',
+ 'state_tracker/st_tgsi_lower_depth_clamp.c',
+ 'state_tracker/st_tgsi_lower_depth_clamp.h',
'state_tracker/st_tgsi_lower_yuv.c',
'state_tracker/st_tgsi_lower_yuv.h',
'state_tracker/st_util.h',