pvr: Don't override commands copied to new buffer when extending cs
authorMatt Coster <matt.coster@imgtec.com>
Tue, 8 Aug 2023 08:28:03 +0000 (09:28 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 30 Aug 2023 14:30:15 +0000 (14:30 +0000)
commit367aad4f335a30b190bc45a679729462775bb961
treefd99d7d5f514f7e4627d6fb27d76cd4f4acb4241
parent9c39ea796cd689670ab17e0c5dcc0c0b76db2cb4
pvr: Don't override commands copied to new buffer when extending cs

The next pointer wasn't advanced past the start of the new buffer,
meaning anything overflowed into the new buffer would be overwritten
on the next emit.

Signed-off-by: Matt Coster <matt.coster@imgtec.com>
Reviewed-by: Luigi Santivetti <luigi.santivetti@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24692>
src/imagination/vulkan/pvr_csb.c