From cd4871017622ae7dc2da41b67d393f696693f6dd Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Sat, 10 Sep 2022 03:40:21 +0200 Subject: [PATCH] nvk: reduce pitch for FillBuffer Signed-off-by: Karol Herbst Part-of: --- src/nouveau/vulkan/nvk_cmd_copy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nouveau/vulkan/nvk_cmd_copy.c b/src/nouveau/vulkan/nvk_cmd_copy.c index 4315e4a..6623189 100644 --- a/src/nouveau/vulkan/nvk_cmd_copy.c +++ b/src/nouveau/vulkan/nvk_cmd_copy.c @@ -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); -- 2.7.4