The bo contents may be undefined when only GBM_BO_TRANSFER_WRITE is set (e.g., with radeonsi). When transferring to a subregion, we need to set GBM_BO_TRANSFER_READ as well. gbm_bo_map2 does allow us to map a subregion, but not all implementations work correctly. Signed-off-by: Chia-I Wu <olvaffe@gmail.com> Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>macos/master
parent
9dac27a026
commit
ad2e9c49da
Loading…
Reference in new issue