mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 17:48:10 +02:00
radv: check for has_trap_handler_support instead of asserting
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31925>
This commit is contained in:
parent
e27ba67d33
commit
930395c5e4
1 changed files with 3 additions and 3 deletions
|
|
@ -643,11 +643,11 @@ radv_device_init_trap_handler(struct radv_device *device)
|
|||
{
|
||||
const struct radv_physical_device *pdev = radv_device_physical(device);
|
||||
|
||||
if (!radv_trap_handler_enabled())
|
||||
if (!pdev->info.has_trap_handler_support)
|
||||
return VK_SUCCESS;
|
||||
|
||||
/* TODO: Add support for more hardware. */
|
||||
assert(pdev->info.gfx_level == GFX8);
|
||||
if (!radv_trap_handler_enabled())
|
||||
return VK_SUCCESS;
|
||||
|
||||
fprintf(stderr, "**********************************************************************\n");
|
||||
fprintf(stderr, "* WARNING: RADV_TRAP_HANDLER is experimental and only for debugging! *\n");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue