Module: Mesa
Branch: main
Commit: ac6139ad73f55595cb089d848d080f8e84689c34
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ac6139ad73f55595cb089d848d080f8e84689c34

Author: Mike Blumenkrantz <[email protected]>
Date:   Wed Oct 25 13:32:22 2023 -0400

zink: don't block large vram allocations

I think this was masking some other problem that has long since been fixed

cc: mesa-stable

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

---

 src/gallium/drivers/zink/zink_bo.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/gallium/drivers/zink/zink_bo.c 
b/src/gallium/drivers/zink/zink_bo.c
index 14aaca63759..7fd2bd4fe43 100644
--- a/src/gallium/drivers/zink/zink_bo.c
+++ b/src/gallium/drivers/zink/zink_bo.c
@@ -256,10 +256,6 @@ bo_create_internal(struct zink_screen *screen,
    struct zink_bo *bo = NULL;
    bool init_pb_cache;
 
-   /* too big for vk alloc */
-   if (size > UINT32_MAX)
-      return NULL;
-
    alignment = get_optimal_alignment(screen, size, alignment);
 
    VkMemoryAllocateFlagsInfo ai;

Reply via email to