crocus/bufmgr: fix userptr left over fail
authorDave Airlie <airlied@redhat.com>
Tue, 22 Jun 2021 01:13:04 +0000 (11:13 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 22 Jun 2021 20:08:19 +0000 (06:08 +1000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11538>

src/gallium/drivers/crocus/crocus_bufmgr.c

index c0f8711..fa80b2a 100644 (file)
@@ -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;