mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 22:18:13 +02:00
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> (cherry picked from commit34145725ce)
This commit is contained in:
parent
4734c85292
commit
3931961070
2 changed files with 2 additions and 2 deletions
|
|
@ -1864,7 +1864,7 @@
|
|||
"description": "crocus: properly free resources on BO allocation failure",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "f3630548f1da904ec6c63b43ece7e68afdb8867e",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -803,7 +803,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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue