mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 17:50:11 +01:00
intel/fs: Only use SLM fence in compute shaders
Fixes:b390ff3517("intel/fs: Add support for SLM fence in Gen11") Fixes:e142061399("intel/fs: Implement scoped_memory_barrier") Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
9e699ae690
commit
edf6a40cb2
1 changed files with 3 additions and 0 deletions
|
|
@ -4299,6 +4299,9 @@ fs_visitor::nir_emit_intrinsic(const fs_builder &bld, nir_intrinsic_instr *instr
|
|||
}
|
||||
}
|
||||
|
||||
if (stage != MESA_SHADER_COMPUTE)
|
||||
slm_fence = false;
|
||||
|
||||
/* Be conservative in Gen11+ and always stall in a fence. Since there
|
||||
* are two different fences, and shader might want to synchronize
|
||||
* between them.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue