nak: Don't emit barrier ops for shared memory pre-Volta

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28084>
This commit is contained in:
Faith Ekstrand 2024-07-23 11:11:08 -05:00 committed by Marge Bot
parent 25eb6c8206
commit fd83fc4bfb

View file

@ -3148,7 +3148,8 @@ impl<'a> ShaderFromNir<'a> {
let sm = self.sm;
let mut b = SSAInstrBuilder::new(sm, ssa_alloc);
if nb.index == 0 && self.nir.info.shared_size > 0 {
if self.sm.sm() >= 70 && nb.index == 0 && self.nir.info.shared_size > 0
{
// The blob seems to always do a BSYNC before accessing shared
// memory. Perhaps this is to ensure that our allocation is
// actually available and not in use by another thread?