crocus: properly free resources on BO allocation failure
Iris already has the same fix applied.
Fixes: f3630548f1
("crocus: initial gallium driver for Intel gfx 4-7")
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30305>
This commit is contained in:
@@ -802,7 +802,7 @@ crocus_resource_from_handle(struct pipe_screen *pscreen,
|
||||
unreachable("invalid winsys handle type");
|
||||
}
|
||||
if (!res->bo)
|
||||
return NULL;
|
||||
goto fail;
|
||||
|
||||
res->offset = whandle->offset;
|
||||
res->external_format = whandle->format;
|
||||
|
Reference in New Issue
Block a user