mirror of https://gitlab.freedesktop.org/mesa/mesa
radv: inline radv_device_fault_detection_enabled
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28394>
This commit is contained in:
parent
f4199a9b21
commit
739d45d5d4
|
@ -1,4 +1,5 @@
|
||||||
#include "nir/nir_builder.h"
|
#include "nir/nir_builder.h"
|
||||||
|
#include "radv_debug.h"
|
||||||
#include "radv_meta.h"
|
#include "radv_meta.h"
|
||||||
#include "radv_sdma.h"
|
#include "radv_sdma.h"
|
||||||
|
|
||||||
|
|
|
@ -111,4 +111,11 @@ void radv_check_trap_handler(struct radv_queue *queue);
|
||||||
|
|
||||||
bool radv_vm_fault_occurred(struct radv_device *device, struct radv_winsys_gpuvm_fault_info *fault_info);
|
bool radv_vm_fault_occurred(struct radv_device *device, struct radv_winsys_gpuvm_fault_info *fault_info);
|
||||||
|
|
||||||
|
|
||||||
|
ALWAYS_INLINE static bool
|
||||||
|
radv_device_fault_detection_enabled(const struct radv_device *device)
|
||||||
|
{
|
||||||
|
return device->instance->debug_flags & RADV_DEBUG_HANG;
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -90,12 +90,6 @@ radv_spm_trace_enabled(struct radv_instance *instance)
|
||||||
debug_get_bool_option("RADV_THREAD_TRACE_CACHE_COUNTERS", true);
|
debug_get_bool_option("RADV_THREAD_TRACE_CACHE_COUNTERS", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
|
||||||
radv_device_fault_detection_enabled(const struct radv_device *device)
|
|
||||||
{
|
|
||||||
return device->instance->debug_flags & RADV_DEBUG_HANG;
|
|
||||||
}
|
|
||||||
|
|
||||||
VKAPI_ATTR VkResult VKAPI_CALL
|
VKAPI_ATTR VkResult VKAPI_CALL
|
||||||
radv_GetMemoryHostPointerPropertiesEXT(VkDevice _device, VkExternalMemoryHandleTypeFlagBits handleType,
|
radv_GetMemoryHostPointerPropertiesEXT(VkDevice _device, VkExternalMemoryHandleTypeFlagBits handleType,
|
||||||
const void *pHostPointer,
|
const void *pHostPointer,
|
||||||
|
|
|
@ -3824,8 +3824,6 @@ radv_uses_image_float32_atomics(const struct radv_device *device)
|
||||||
device->vk.enabled_features.sparseImageFloat32AtomicMinMax;
|
device->vk.enabled_features.sparseImageFloat32AtomicMinMax;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool radv_device_fault_detection_enabled(const struct radv_device *device);
|
|
||||||
|
|
||||||
struct radv_compute_pipeline_metadata {
|
struct radv_compute_pipeline_metadata {
|
||||||
uint32_t shader_va;
|
uint32_t shader_va;
|
||||||
uint32_t rsrc1;
|
uint32_t rsrc1;
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
/* command buffer handling for AMD GCN */
|
/* command buffer handling for AMD GCN */
|
||||||
|
|
||||||
#include "radv_cs.h"
|
#include "radv_cs.h"
|
||||||
|
#include "radv_debug.h"
|
||||||
#include "radv_private.h"
|
#include "radv_private.h"
|
||||||
#include "radv_shader.h"
|
#include "radv_shader.h"
|
||||||
#include "sid.h"
|
#include "sid.h"
|
||||||
|
|
Loading…
Reference in New Issue