diff options
author | Jason Ekstrand <[email protected]> | 2016-06-14 08:40:49 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-06-20 12:04:08 -0700 |
commit | eb6764c4a73006eee32e19e3afc6eab100a2ce16 (patch) | |
tree | b907a0efc58a59609dd6b0297e8ecadb5585c5d5 /src/intel/vulkan/anv_pipeline.c | |
parent | 8a46b505cb2c7255ad430b56c1ce0dfa9c13c559 (diff) |
anv: Add proper support for depth clamping
Signed-off-by: Jason Ekstrand <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Cc: "12.0" <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_pipeline.c')
-rw-r--r-- | src/intel/vulkan/anv_pipeline.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index 1c54081d47c..295b48cf492 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -1165,6 +1165,8 @@ anv_pipeline_init(struct anv_pipeline *pipeline, pipeline->batch.relocs = &pipeline->batch_relocs; copy_non_dynamic_state(pipeline, pCreateInfo); + pipeline->depth_clamp_enable = pCreateInfo->pRasterizationState && + pCreateInfo->pRasterizationState->depthClampEnable; pipeline->use_repclear = extra && extra->use_repclear; |