Module: Mesa
Branch: staging/23.1
Commit: 3366b92567900880ec54fc4e0c99db16dce93ed1
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=3366b92567900880ec54fc4e0c99db16dce93ed1

Author: Mike Blumenkrantz <[email protected]>
Date:   Tue Apr 18 17:30:30 2023 -0400

Revert "zink: restore BAR allocation failure demotion"

This reverts commit 47bea0f65a762d48a2a35146effa90b2d9fb697a.

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

---

 .pick_status.json                        | 2 +-
 src/gallium/drivers/zink/zink_resource.c | 3 ---
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/.pick_status.json b/.pick_status.json
index 408df0e5450..69dca9a5cb4 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -130,7 +130,7 @@
         "description": "zink: restore BAR allocation failure demotion",
         "nominated": true,
         "nomination_type": 1,
-        "resolution": 1,
+        "resolution": 0,
         "main_sha": null,
         "because_sha": "f6d3a5755f63c81881ff5647fe783038c955e8e3"
     },
diff --git a/src/gallium/drivers/zink/zink_resource.c 
b/src/gallium/drivers/zink/zink_resource.c
index 27e554a251e..18886c6822b 100644
--- a/src/gallium/drivers/zink/zink_resource.c
+++ b/src/gallium/drivers/zink/zink_resource.c
@@ -1077,10 +1077,7 @@ resource_object_create(struct zink_screen *screen, const 
struct pipe_resource *t
    if (templ->usage == PIPE_USAGE_STAGING && obj->is_buffer)
       alignment = MAX2(alignment, 
screen->info.props.limits.minMemoryMapAlignment);
    obj->alignment = alignment;
-
 retry:
-   mai.memoryTypeIndex = zink_mem_type_idx_from_bits(screen, heap, 
reqs.memoryTypeBits);
-   assert(reqs.memoryTypeBits & BITFIELD_BIT(mai.memoryTypeIndex));
    obj->bo = zink_bo(zink_bo_create(screen, reqs.size, alignment, heap, 
mai.pNext ? ZINK_ALLOC_NO_SUBALLOC : 0, mai.memoryTypeIndex, mai.pNext));
    if (!obj->bo) {
       if (heap == ZINK_HEAP_DEVICE_LOCAL_VISIBLE) {

Reply via email to