From b76f2299544c73c831edf4b1e212427a41ccdd23 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 22 Jun 2021 11:13:04 +1000 Subject: [PATCH] crocus/bufmgr: fix userptr left over fail Part-of: --- 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 c0f8711..fa80b2a 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; -- 2.7.4