pvr: Fix unaligned VDMCTRL_PDS_STATE1 data address
authorKarmjit Mahil <Karmjit.Mahil@imgtec.com>
Fri, 21 Apr 2023 15:13:24 +0000 (16:13 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 2 May 2023 09:20:18 +0000 (09:20 +0000)
commit926ddc319cdfddd8acae546a06a4400e070685ca
treeef444b533a696f4bfaff3b7068f3d908650febf4
parent78df1977fe3025eb2acc62b4658570e220a10c30
pvr: Fix unaligned VDMCTRL_PDS_STATE1 data address

For indirect draw commands the data segment's address was being
calculated with an unaligned code size which could potentially
send an unaligned address to the hw causing problems.

Reported-by: James Glanville <james.glanville@imgtec.com>
Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22746>
src/imagination/vulkan/pvr_cmd_buffer.c