Module: Mesa
Branch: main
Commit: 836990b6513c74160ea50a4ecd59552fc9ac970f
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=836990b6513c74160ea50a4ecd59552fc9ac970f

Author: Samuel Pitoiset <[email protected]>
Date:   Tue Jun 20 14:25:13 2023 +0200

radv: enable NV_device_generated_commands on GFX6

Now that GFX6 supports IBs, DGC can also be enabled.
Pass all vkd3d-proton tests on Pitcairn.

Signed-off-by: Samuel Pitoiset <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23689>

---

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

diff --git a/src/amd/vulkan/radv_physical_device.c 
b/src/amd/vulkan/radv_physical_device.c
index 3af77d70b31..4e652c2e93b 100644
--- a/src/amd/vulkan/radv_physical_device.c
+++ b/src/amd/vulkan/radv_physical_device.c
@@ -83,7 +83,7 @@ radv_vrs_attachment_enabled(const struct radv_physical_device 
*pdevice)
 static bool
 radv_NV_device_generated_commands_enabled(const struct radv_physical_device 
*device)
 {
-   return device->rad_info.gfx_level >= GFX7 && 
!(device->instance->debug_flags & RADV_DEBUG_NO_IBS) &&
+   return !(device->instance->debug_flags & RADV_DEBUG_NO_IBS) &&
           driQueryOptionb(&device->instance->dri_options, "radv_dgc");
 }
 

Reply via email to