summaryrefslogtreecommitdiff
path: root/src/intel/vulkan/genX_pipeline.c
diff options
context:
space:
mode:
authorPlamena Manolova <plamena.manolova@intel.com>2019-10-24 21:05:11 +0100
committerPlamena Manolova <plamena.manolova@intel.com>2019-10-28 14:13:04 +0000
commit939ddccb7a541259957e883d2c9dedbe4df265ad (patch)
tree0fa1a22c3277c4777af1dddd20f8ee03b97513cb /src/intel/vulkan/genX_pipeline.c
parent1df871f8ff753dd234def380ea0e20d7e81cad9e (diff)
anv: Add support for depth bounds testing.
In gen12 we use the 3DSTATE_DEPTH_BOUNDS instruction to enable depth bounds testing. Signed-off-by: Plamena Manolova <plamena.manolova@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'src/intel/vulkan/genX_pipeline.c')
-rw-r--r--src/intel/vulkan/genX_pipeline.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c
index 88f5b358faf..203b1f25310 100644
--- a/src/intel/vulkan/genX_pipeline.c
+++ b/src/intel/vulkan/genX_pipeline.c
@@ -1021,6 +1021,7 @@ emit_ds_state(struct anv_pipeline *pipeline,
pipeline->stencil_test_enable = info.stencilTestEnable;
pipeline->writes_depth = info.depthWriteEnable;
pipeline->depth_test_enable = info.depthTestEnable;
+ pipeline->depth_bounds_test_enable = info.depthBoundsTestEnable;
/* VkBool32 depthBoundsTestEnable; // optional (depth_bounds_test) */