iris: remember to set bo->userptr
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 31 Jul 2018 22:40:12 +0000 (15:40 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:08 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_bufmgr.c

index 72964c4f0680a45a7e7c36bdd349702404ed74d1..aaeab521f97942add7afb4928437273f081e84c7 100644 (file)
@@ -690,6 +690,7 @@ iris_bo_create_userptr(struct iris_bufmgr *bufmgr, const char *name,
       goto err_close;
 
    p_atomic_set(&bo->refcount, 1);
+   bo->userptr = true;
    bo->cache_coherent = true;
    bo->index = -1;
    bo->idle = true;