Guest User

Untitled

a guest
Dec 13th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. diff --git a/src/gallium/drivers/nv50/nv50_screen.c b/src/gallium/drivers/nv50/nv50_screen.c
  2. index 235cd82..d9da510 100644
  3. --- a/src/gallium/drivers/nv50/nv50_screen.c
  4. +++ b/src/gallium/drivers/nv50/nv50_screen.c
  5. @@ -453,6 +453,14 @@ nv50_screen_create(struct pipe_winsys *ws, struct nouveau_device *dev)
  6. if (ret)
  7. goto fail;
  8.  
  9. + ret = nouveau_bo_map(screen->code, NOUVEAU_BO_RDWR);
  10. + if (ret)
  11. + goto fail;
  12. +
  13. + void* map = screen->code->map;
  14. + memset(map, 0xa4, 3 << NV50_CODE_BO_SIZE_LOG2);
  15. + nouveau_bo_unmap(screen->code);
  16. +
  17. nouveau_resource_init(&screen->vp_code_heap, 0, 1 << NV50_CODE_BO_SIZE_LOG2);
  18. nouveau_resource_init(&screen->gp_code_heap, 0, 1 << NV50_CODE_BO_SIZE_LOG2);
  19. nouveau_resource_init(&screen->fp_code_heap, 0, 1 << NV50_CODE_BO_SIZE_LOG2);
Add Comment
Please, Sign In to add comment