nvk: reduce pitch for FillBuffer
authorKarol Herbst <kherbst@redhat.com>
Sat, 10 Sep 2022 01:40:21 +0000 (03:40 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 21:32:02 +0000 (21:32 +0000)
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>

src/nouveau/vulkan/nvk_cmd_copy.c

index 4315e4a..6623189 100644 (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);