diff options
author | Erik Faye-Lund <[email protected]> | 2019-06-05 15:39:41 +0200 |
---|---|---|
committer | Gert Wollny <[email protected]> | 2019-08-01 05:58:53 +0000 |
commit | b048d8bf8f056759d1845a799d4ba2ac84bce30f (patch) | |
tree | ef6c4b6f0abc8d662970ffdd497aa21057368f28 /src/mesa/Makefile.sources | |
parent | 78ba12f40f79f94d082b7f32e121b3d149792bed (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/Makefile.sources')
-rw-r--r-- | src/mesa/Makefile.sources | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/Makefile.sources b/src/mesa/Makefile.sources index b0b43a78ce9..acb0c2b53cf 100644 --- a/src/mesa/Makefile.sources +++ b/src/mesa/Makefile.sources @@ -556,6 +556,8 @@ STATETRACKER_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 \ |