nvk: reduce pitch for FillBuffer

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
Karol Herbst 2022-09-10 03:40:21 +02:00 committed by Marge Bot
parent 1eb63dd19a
commit cd48710176

View file

@ -566,8 +566,8 @@ nvk_CmdFillBuffer(VkCommandBuffer commandBuffer,
VkDeviceSize start = dstOffset / 4;
VkDeviceSize end = start + fillSize / 4;
/* can't go higher for whatever reason */
uint32_t pitch = 1 << 19;
/* Pascal could do 1 << 19, but previous gens need lower pitches */
uint32_t pitch = 1 << 18;
uint32_t line = pitch / 4;
struct nv_push *p = nvk_cmd_buffer_push(cmd, 33);