diff options
author | Ben Widawsky <[email protected]> | 2017-03-21 11:59:33 -0700 |
---|---|---|
committer | Ben Widawsky <[email protected]> | 2017-03-21 14:48:03 -0700 |
commit | 962b31da958ce41aecd7ba3a05c92f9b4eec61f0 (patch) | |
tree | 355eb9127e31f7f4f34eabe2fddda32906429c08 /src/mesa | |
parent | b15038a28991c73b4bd26c30cf1f0aba20d42d53 (diff) |
i965/dri: Disallow image with INVALID modifier
Signed-off-by: Ben Widawsky <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa')
-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. */ |