[Mesa-dev] [PATCH] anv: expose depthBiasClamp, it is already set

Ilia Mirkin imirkin at alum.mit.edu
Wed Nov 23 04:03:12 UTC 2016


The gen7/8_cmd_buffer logic already sets the clamp, and it's piped
through via the dynamic state.

Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---

Untested. I don't think there are any VK-CTS tests about this. But reading
the code, it all seems to have been piped through already.

 src/intel/vulkan/anv_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index 6ad5316..9909107 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -414,7 +414,7 @@ void anv_GetPhysicalDeviceFeatures(
       .multiDrawIndirect                        = false,
       .drawIndirectFirstInstance                = false,
       .depthClamp                               = true,
-      .depthBiasClamp                           = false,
+      .depthBiasClamp                           = true,
       .fillModeNonSolid                         = true,
       .depthBounds                              = false,
       .wideLines                                = true,
-- 
2.7.3



More information about the mesa-dev mailing list