mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
freedreno/drm: Initialize control->fence
Don't rely on getting a zero'd out buffer, we could hit the bo-cache.
Fixes: 7dabd62464 ("freedreno/drm: Userspace fences")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10567>
This commit is contained in:
parent
636a7cf84b
commit
c554757bc2
1 changed files with 5 additions and 0 deletions
|
|
@ -64,6 +64,11 @@ fd_pipe_new2(struct fd_device *dev, enum fd_pipe_id id, uint32_t prio)
|
|||
0, "pipe-control");
|
||||
pipe->control = fd_bo_map(pipe->control_mem);
|
||||
|
||||
/* We could be getting a bo from the bo-cache, make sure the fence value
|
||||
* is not garbage:
|
||||
*/
|
||||
pipe->control->fence = 0;
|
||||
|
||||
/* We don't want the control_mem bo to hold a reference to the ourself,
|
||||
* so disable userspace fencing. This also means that we won't be able
|
||||
* to determine if the buffer is idle which is needed by bo-cache. But
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue