pvr: fix allocation size of clear colour consts shared regs buffer
authorFrank Binns <frank.binns@imgtec.com>
Thu, 28 Sep 2023 21:24:31 +0000 (22:24 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 10 Oct 2023 17:54:14 +0000 (17:54 +0000)
commit6417a65f280312436a78be188d3bc1bf2e452ad0
treec22f6319d6248ceddd57a105f455526687a02378
parente8f6d7b0d433c9938e4144b3cb8c00a3782dd2b9
pvr: fix allocation size of clear colour consts shared regs buffer

The number of const shared registers was being used for the allocation size
rather than the number of bytes. In practice this doesn't make a difference as
the max allocation size is 24 bytes, which then gets rounded up to 64 bytes by
the buffer allocation function. However, we might as well make the allocation
size correct to avoid any future confusion. Noticed through code inspection.

Fixes: 7509e259f85 ("pvr: Implement color/depth/depth+stencil attachment clear.")
Signed-off-by: Frank Binns <frank.binns@imgtec.com>
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25489>
src/imagination/vulkan/pvr_blit.c