Skip to content

anv/anroid: Query gralloc for tiling mode

Weifeng Liu requested to merge phreer/mesa:gralloc-modifier into main

What does this MR do and why?

As of now, running VUlkan Apps with tiling buffers as scan-out buffers causes corrupted images because set_tiling and get_tiling APIs are not supported for newer platforms. Switch to more reliable way of getting tiling mode for scan-out buffers via gralloc API.

anv/anroid: Query gralloc for tiling mode

Tiled scan-out buffer works only for those platforms supporting
set_tiling/get_tiling ioctl, which is not used for newer platforms
(e.g., dGPU).  This change switch to querying modifier reliably with
gralloc API.

Signed-off-by: Weifeng Liu <weifeng.liu@intel.com>

Merge request reports