Module: Mesa
Branch: main
Commit: b76f2299544c73c831edf4b1e212427a41ccdd23
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=b76f2299544c73c831edf4b1e212427a41ccdd23

Author: Dave Airlie <[email protected]>
Date:   Tue Jun 22 11:13:04 2021 +1000

crocus/bufmgr: fix userptr left over fail

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11538>

---

 src/gallium/drivers/crocus/crocus_bufmgr.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/gallium/drivers/crocus/crocus_bufmgr.c 
b/src/gallium/drivers/crocus/crocus_bufmgr.c
index c0f87116a40..fa80b2a1155 100644
--- a/src/gallium/drivers/crocus/crocus_bufmgr.c
+++ b/src/gallium/drivers/crocus/crocus_bufmgr.c
@@ -512,9 +512,6 @@ crocus_bo_create_userptr(struct crocus_bufmgr *bufmgr, 
const char *name,
    bo->bufmgr = bufmgr;
    bo->kflags = 0;
 
-   if (bo->gtt_offset == 0ull)
-      goto err_close;
-
    p_atomic_set(&bo->refcount, 1);
    bo->userptr = true;
    bo->cache_coherent = true;

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to