mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 15:48:36 +02:00
freedreno/drm: Avoid unitialized timestamp in submit fail
Saw a flood of "waiting on invalid fence" with a completely bogus looking fence # in a log of a rather strange low-memory crash. Not sure if it is coming from memory corruption in userspace, but if a submit ioctl is failing due to failed allocation (or other reason) we would get left with random stack garbage as the fence #. Let's not have that as a potential problem. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9638>
This commit is contained in:
parent
5bc100eb2d
commit
5d2c9fd161
1 changed files with 1 additions and 1 deletions
|
|
@ -653,7 +653,7 @@ render_sysmem(struct fd_batch *batch)
|
|||
static void
|
||||
flush_ring(struct fd_batch *batch)
|
||||
{
|
||||
uint32_t timestamp;
|
||||
uint32_t timestamp = 0;
|
||||
int out_fence_fd = -1;
|
||||
|
||||
if (FD_DBG(NOHW))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue