diff options
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_screen.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c index af9c9a45f3c..b77933e100e 100644 --- a/src/mesa/drivers/dri/i965/intel_screen.c +++ b/src/mesa/drivers/dri/i965/intel_screen.c @@ -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. */ |