radv: enable conservativeRasterizationPostDepthCoverage on GFX10+ when possible
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

This seems to work just fine, except on NAVI21, NAVI22 and VANGOGH. It
might be the same issue as has_vrs_ds_export_bug but it's not documented
anywhere. That being said, the CTS tests that fail don't even export
depth or stencil from fragment shaders.

Do not enable this feature on these GPUs to be conservative.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38767>
This commit is contained in:
Samuel Pitoiset 2025-12-02 13:47:46 +01:00 committed by Marge Bot
parent d1386e167e
commit 069f60a4e7

View file

@ -1919,7 +1919,13 @@ radv_get_physical_device_properties(struct radv_physical_device *pdev)
.degenerateTrianglesRasterized = true,
.degenerateLinesRasterized = false,
.fullyCoveredFragmentShaderInputVariable = true,
.conservativeRasterizationPostDepthCoverage = false,
.conservativeRasterizationPostDepthCoverage =
pdev->info.gfx_level >= GFX10 &&
/* The combination of VRS + underestimate conservative rasterization + post depth coverage
* seem to not behave correctly on few RDNA2 GPUs. It might be similar to
* has_vrs_ds_export_bug but this isn't documented anywhere. Be conservative here.
*/
pdev->info.family != CHIP_NAVI21 && pdev->info.family != CHIP_NAVI22 && pdev->info.family != CHIP_VANGOGH,
#ifndef _WIN32
/* VK_EXT_pci_bus_info */