mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 08:50:09 +01:00
anv: return VK_ERROR_OUT_OF_DEVICE_MEMORY when surface size is out of HW limits
Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
9248f72c4e
commit
eac629deb6
1 changed files with 2 additions and 4 deletions
|
|
@ -335,10 +335,8 @@ make_surface(const struct anv_device *dev,
|
|||
.usage = usage,
|
||||
.tiling_flags = tiling_flags);
|
||||
|
||||
/* isl_surf_init() will fail only if provided invalid input. Invalid input
|
||||
* is illegal in Vulkan.
|
||||
*/
|
||||
assert(ok);
|
||||
if (!ok)
|
||||
return VK_ERROR_OUT_OF_DEVICE_MEMORY;
|
||||
|
||||
image->planes[plane].aux_usage = ISL_AUX_USAGE_NONE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue