iris: Check that mem_fence_bo was created

Cc: José Roberto de Souza <jose.souza@intel.com>
Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 8e8097245f ("iris: Emit STATE_SYSTEM_MEM_FENCE_ADDRESS")
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
(cherry picked from commit adfd7486c2)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32730>
This commit is contained in:
Jordan Justen
2024-12-19 00:51:38 -08:00
committed by Dylan Baker
parent 8e15c99523
commit bb5927c31f
2 changed files with 3 additions and 3 deletions

View File

@@ -2484,8 +2484,8 @@ iris_bufmgr_create(struct intel_device_info *devinfo, int fd, bool bo_reuse)
if (devinfo->verx10 >= 200) {
bufmgr->mem_fence_bo = iris_bo_alloc(bufmgr, "mem_fence", 4096, 4096,
IRIS_MEMZONE_OTHER, BO_ALLOC_SMEM);
if (!bufmgr->dummy_aux_bo)
goto error_alloc_bo;
if (!bufmgr->mem_fence_bo)
goto error_alloc_bo;
}
return bufmgr;