crocus: fail resource allocation properly.
Older gens have a limit of 2GB on surfaces, this results in
isl_surf_init_s failing if the surface exceeds that, in this
case this should fail all the way back up the stack.
This fixes some cases of max-texture-size on crocus
Fixes: f3630548f1
("crocus: initial gallium driver for Intel gfx 4-7")
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14347>
This commit is contained in:
parent
a2293e33fd
commit
d8a38edc48
|
@ -688,9 +688,10 @@ crocus_resource_create_with_modifiers(struct pipe_screen *pscreen,
|
|||
devinfo->ver < 6)
|
||||
return NULL;
|
||||
|
||||
UNUSED const bool isl_surf_created_successfully =
|
||||
const bool isl_surf_created_successfully =
|
||||
crocus_resource_configure_main(screen, res, templ, modifier, 0);
|
||||
assert(isl_surf_created_successfully);
|
||||
if (!isl_surf_created_successfully)
|
||||
return NULL;
|
||||
|
||||
const char *name = "miptree";
|
||||
|
||||
|
|
Loading…
Reference in New Issue