From 8be9171fcba1f9c71b0417c502cec3377affa8ee Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Sun, 16 Oct 2022 23:02:01 +0200 Subject: [PATCH] rusticl/mem: can only map staging textures directly Part-of: --- src/gallium/frontends/rusticl/core/memory.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/frontends/rusticl/core/memory.rs b/src/gallium/frontends/rusticl/core/memory.rs index fe7d59bd33c..c6754f3e7f6 100644 --- a/src/gallium/frontends/rusticl/core/memory.rs +++ b/src/gallium/frontends/rusticl/core/memory.rs @@ -527,8 +527,8 @@ impl Mem { let r = self.get_res()?.get(&q.device).unwrap(); let ctx = q.device.helper_ctx(); - // don't bother mapping directly if it's not UMA - let tx = if q.device.unified_memory() || bit_check(self.flags, CL_MEM_ALLOC_HOST_PTR) { + // don't bother mapping directly if it's not staging + let tx = if bit_check(self.flags, CL_MEM_ALLOC_HOST_PTR) { ctx.texture_map_directly(r, bx, rw) } else { None