summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorDaniel Stone <[email protected]>2017-05-03 09:38:13 +0100
committerEmil Velikov <[email protected]>2017-05-08 11:24:05 +0100
commitee0254a12fb1cdadcd263ee77b4c25c055100561 (patch)
treece1d4efa5041e86674aef0a192719e6037f64d41 /src/gallium
parent5b7cc779d21571d9d47f89ce3071d3af27c189b6 (diff)
i965: Set modifier for imported and duplicated images
When a buffer is being created from FD or GEM flink import, the current API makes no provision for passing modifier information along with this. Set the modifier for such images to DRM_FORMAT_MOD_INVALID. Also preserve the modifier when duplicating an image, as will be done by GBM when importing from a wl_buffer. This doubly tripped up Wayland, as the images would first have been created (as wl_buffers) with a 0 modifier, and then lost what modifier they would've had when being duplicated into gbm_bos. Fixes: d78a36ea624 ("i965/dri: Handle the linear fb modifier") Signed-off-by: Daniel Stone <[email protected]> Reviewed-by: Emil Velikov <[email protected]> (cherry picked from commit 8b8af19065a5bfd06fd0d97b891cfff807704935)
Diffstat (limited to 'src/gallium')
0 files changed, 0 insertions, 0 deletions