mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
winsys/amdgpu: fix infinite loop w/ RADEON_NOOP=1 caused by unsubmitted fences
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
e4bbab9022
commit
d7e74b52bb
1 changed files with 5 additions and 2 deletions
|
|
@ -37,6 +37,8 @@
|
|||
|
||||
#include "amd/common/sid.h"
|
||||
|
||||
DEBUG_GET_ONCE_BOOL_OPTION(noop, "RADEON_NOOP", false)
|
||||
|
||||
/* FENCES */
|
||||
|
||||
static struct pipe_fence_handle *
|
||||
|
|
@ -143,6 +145,9 @@ amdgpu_cs_get_next_fence(struct radeon_winsys_cs *rcs)
|
|||
struct amdgpu_cs *cs = amdgpu_cs(rcs);
|
||||
struct pipe_fence_handle *fence = NULL;
|
||||
|
||||
if (debug_get_option_noop())
|
||||
return NULL;
|
||||
|
||||
if (cs->next_fence) {
|
||||
amdgpu_fence_reference(&fence, cs->next_fence);
|
||||
return fence;
|
||||
|
|
@ -1069,8 +1074,6 @@ void amdgpu_cs_sync_flush(struct radeon_winsys_cs *rcs)
|
|||
util_queue_job_wait(&cs->flush_completed);
|
||||
}
|
||||
|
||||
DEBUG_GET_ONCE_BOOL_OPTION(noop, "RADEON_NOOP", false)
|
||||
|
||||
static int amdgpu_cs_flush(struct radeon_winsys_cs *rcs,
|
||||
unsigned flags,
|
||||
struct pipe_fence_handle **fence)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue