mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 15:10:10 +01:00
i965/dri: Disallow image with INVALID modifier
Signed-off-by: Ben Widawsky <ben@bwidawsk.net> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
b15038a289
commit
962b31da95
1 changed files with 3 additions and 0 deletions
|
|
@ -541,6 +541,9 @@ intel_create_image_common(__DRIscreen *dri_screen,
|
|||
uint64_t modifier = select_best_modifier(&screen->devinfo, modifiers, count);
|
||||
assert(modifier == DRM_FORMAT_MOD_INVALID);
|
||||
|
||||
if (modifier == DRM_FORMAT_MOD_INVALID && modifiers)
|
||||
return NULL;
|
||||
|
||||
/* Historically, X-tiled was the default, and so lack of modifier means
|
||||
* X-tiled.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue