mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
nvc0: inform kernel about buffers that screen_create touches
Prevents a GPU page fault if somehow the uniform bo gets evicted before the screen_create pushbuf has been submitted. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
1bdb99330a
commit
085ad4821e
1 changed files with 2 additions and 0 deletions
|
|
@ -743,6 +743,8 @@ nvc0_screen_create(struct nouveau_device *dev)
|
|||
if (ret)
|
||||
goto fail;
|
||||
|
||||
PUSH_REFN (push, screen->uniform_bo, NOUVEAU_BO_VRAM | NOUVEAU_BO_WR);
|
||||
|
||||
for (i = 0; i < 5; ++i) {
|
||||
/* TIC and TSC entries for each unit (nve4+ only) */
|
||||
/* auxiliary constants (6 user clip planes, base instance id) */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue