nvk: reduce pitch even further in CmdFillBuffer
authorKarol Herbst <kherbst@redhat.com>
Sat, 11 Jun 2022 13:07:10 +0000 (15:07 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 21:31:54 +0000 (21:31 +0000)
otherwise the coords would overflow hw limits.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>

src/nouveau/vulkan/nvk_cmd_blit.c

index 65e07e2..6543b81 100644 (file)
@@ -175,7 +175,7 @@ nvk_CmdFillBuffer(
    VkDeviceSize end = start + fillSize / 4;
 
    /* can't go higher for whatever reason */
-   uint32_t pitch = 1 << 21;
+   uint32_t pitch = 1 << 19;
    uint32_t line = pitch / 4;
 
    nouveau_ws_push_ref(push, dst->mem->bo, NOUVEAU_WS_BO_WR);