i965: honor scanout requirement from DRI

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
This commit is contained in:
Lionel Landwerlin 2019-08-08 11:40:30 +03:00
parent bc844d92ce
commit ac5bda374a

View file

@ -754,7 +754,9 @@ intel_create_image_common(__DRIscreen *dri_screen,
.samples = 1,
.usage = ISL_SURF_USAGE_RENDER_TARGET_BIT |
ISL_SURF_USAGE_TEXTURE_BIT |
ISL_SURF_USAGE_STORAGE_BIT,
ISL_SURF_USAGE_STORAGE_BIT |
((use & __DRI_IMAGE_USE_SCANOUT) ?
ISL_SURF_USAGE_DISPLAY_BIT : 0),
.tiling_flags = (1 << mod_info->tiling));
assert(ok);
if (!ok) {