diff options
author | Lionel Landwerlin <[email protected]> | 2019-08-08 11:40:30 +0300 |
---|---|---|
committer | Lionel Landwerlin <[email protected]> | 2019-08-21 23:52:07 +0000 |
commit | ac5bda374abd9a125c4b5e04e2a0e3a6f0584933 (patch) | |
tree | b27725d7c648ade99eb10917afe914a498511510 /src/mesa/drivers/dri | |
parent | bc844d92ce0fd000a85c370ecef27ad42a27cf14 (diff) |
i965: honor scanout requirement from DRI
Signed-off-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_screen.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c index 641f44152cf..4dac9f7860c 100644 --- a/src/mesa/drivers/dri/i965/intel_screen.c +++ b/src/mesa/drivers/dri/i965/intel_screen.c @@ -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) { |