v3dv: only require 4-byte alignment for linear images
authorIago Toral Quiroga <itoral@igalia.com>
Mon, 11 May 2020 06:05:59 +0000 (08:05 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:30 +0000 (21:21 +0000)
commitf1b1d5bb8e7a4cbcbc0ab8bcba30d9c36b68f5d4
treec44c04b822606da8abe81d52ad2eab2af8667754
parentfe0ccdbc830a0a586316c7198c6f470d6d0a43da
v3dv: only require 4-byte alignment for linear images

The page alignment requirement is for UIF images only, and for linear
images it is actually useful to use a 4-byte alignment so we can
use them to write images to linear buffers at arbitrary positions, which
we will need when copying subrects of an image to a buffer.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
src/broadcom/vulkan/v3dv_image.c