mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-06 19:18:15 +02:00
nvc0: work around what looks like a code prefetch bug
Sounds very unlikely, but I don't have a better explanation at the moment. The GPU throws page faults at the first page after the code buffer quite frequently on startup, and traces don't show us overflowing.
This commit is contained in:
parent
f4ad25fefb
commit
25a7f66214
1 changed files with 4 additions and 1 deletions
|
|
@ -447,7 +447,10 @@ nvc0_screen_create(struct pipe_winsys *ws, struct nouveau_device *dev)
|
|||
if (ret)
|
||||
goto fail;
|
||||
|
||||
nouveau_resource_init(&screen->text_heap, 0, 1 << 20);
|
||||
/* XXX: getting a page fault at the end of the code buffer every few
|
||||
* launches, don't use the last 256 bytes to work around them - prefetch ?
|
||||
*/
|
||||
nouveau_resource_init(&screen->text_heap, 0, (1 << 20) - 0x100);
|
||||
|
||||
ret = nouveau_bo_new(dev, NOUVEAU_BO_VRAM, 1 << 12, 6 << 16,
|
||||
&screen->uniforms);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue