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

Author: Samuel Pitoiset <[email protected]>
Date:   Wed Jan 18 16:55:22 2023 +0100

radv: advertise VK_EXT_device_fault

This is only exposed if the kernel supports GPUVM fault query.

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

---

 docs/relnotes/new_features.txt        | 1 +
 src/amd/vulkan/radv_physical_device.c | 5 +++++
 2 files changed, 6 insertions(+)

diff --git a/docs/relnotes/new_features.txt b/docs/relnotes/new_features.txt
index 68c40f6bf97..355086eae22 100644
--- a/docs/relnotes/new_features.txt
+++ b/docs/relnotes/new_features.txt
@@ -1,3 +1,4 @@
 New features
 ------------
 VK_EXT_image_compression_control on RADV
+VK_EXT_device_fault on RADV
diff --git a/src/amd/vulkan/radv_physical_device.c 
b/src/amd/vulkan/radv_physical_device.c
index 580c51291d3..5c50552424a 100644
--- a/src/amd/vulkan/radv_physical_device.c
+++ b/src/amd/vulkan/radv_physical_device.c
@@ -492,6 +492,7 @@ radv_physical_device_get_supported_extensions(const struct 
radv_physical_device
       .EXT_depth_range_unrestricted = true,
       .EXT_descriptor_buffer = true,
       .EXT_descriptor_indexing = true,
+      .EXT_device_fault = device->rad_info.has_gpuvm_fault_query,
       .EXT_discard_rectangles = true,
 #ifdef VK_USE_PLATFORM_DISPLAY_KHR
       .EXT_display_control = true,
@@ -1058,6 +1059,10 @@ radv_physical_device_get_features(const struct 
radv_physical_device *pdevice, st
 
       /* VK_EXT_image_compression_control */
       .imageCompressionControl = true,
+
+      /* VK_EXT_device_fault */
+      .deviceFault = true,
+      .deviceFaultVendorBinary = false,
    };
 }
 

Reply via email to