diff --git a/src/gallium/frontends/rusticl/core/device.rs b/src/gallium/frontends/rusticl/core/device.rs index 5cf9be80f85..3e2c9d43370 100644 --- a/src/gallium/frontends/rusticl/core/device.rs +++ b/src/gallium/frontends/rusticl/core/device.rs @@ -297,7 +297,7 @@ impl DeviceBase { PIPE_BIND_SHADER_IMAGE, ) { - flags |= CL_MEM_WRITE_ONLY | CL_MEM_KERNEL_READ_AND_WRITE; + flags |= CL_MEM_WRITE_ONLY; } // TODO: cl_khr_srgb_image_writes @@ -308,7 +308,7 @@ impl DeviceBase { PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_SHADER_IMAGE, ) { - flags |= CL_MEM_READ_WRITE; + flags |= CL_MEM_READ_WRITE | CL_MEM_KERNEL_READ_AND_WRITE; } fs.insert(t, flags as cl_mem_flags);