Mesa (master): radv: report that degenerated triangles are not culled
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Mar 26 12:16:25 UTC 2021
Module: Mesa
Branch: master
Commit: a3ee818b790920fa4b74823cd207d3b5ff340798
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a3ee818b790920fa4b74823cd207d3b5ff340798
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Tue Mar 16 10:27:05 2021 +0100
radv: report that degenerated triangles are not culled
I don't think the hw culls these primitives and NGG culling isn't
yet a thing. This also matches PAL.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9691>
---
src/amd/vulkan/radv_device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index e0494a2924e..1a63448eb76 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -2182,7 +2182,7 @@ void radv_GetPhysicalDeviceProperties2(
properties->extraPrimitiveOverestimationSizeGranularity = 0;
properties->primitiveUnderestimation = false;
properties->conservativePointAndLineRasterization = false;
- properties->degenerateTrianglesRasterized = false;
+ properties->degenerateTrianglesRasterized = true;
properties->degenerateLinesRasterized = false;
properties->fullyCoveredFragmentShaderInputVariable = false;
properties->conservativeRasterizationPostDepthCoverage = false;
More information about the mesa-commit
mailing list