mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
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:
parent
bc844d92ce
commit
ac5bda374a
1 changed files with 3 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue