mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 12:40:23 +01:00
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:
parent
25eb6c8206
commit
fd83fc4bfb
1 changed files with 2 additions and 1 deletions
|
|
@ -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?
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue