diff --git a/.pick_status.json b/.pick_status.json index eab60a9fdad..dc8fc22c97e 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -1894,7 +1894,7 @@ "description": "iris: make sure to not mix compressed vs non-compressed", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": null, "notes": null diff --git a/src/gallium/drivers/iris/iris_bufmgr.c b/src/gallium/drivers/iris/iris_bufmgr.c index 419ba98a7b9..2f4c2765276 100644 --- a/src/gallium/drivers/iris/iris_bufmgr.c +++ b/src/gallium/drivers/iris/iris_bufmgr.c @@ -1036,6 +1036,12 @@ alloc_bo_from_cache(struct iris_bufmgr *bufmgr, if (cur->real.capture != !!(flags & BO_ALLOC_CAPTURE)) continue; + /* Make sure we don't recycle compressed vs non-compressed. */ + if ((iris_heap_is_compressed(flags_to_heap(bufmgr, flags))) != + iris_heap_is_compressed(cur->real.heap)) { + continue; + } + /* If the last BO in the cache is busy, there are no idle BOs. Bail, * either falling back to a non-matching memzone, or if that fails, * allocating a fresh buffer.