Fix: EEVEE: Missing barrier in light sorting compute shader

At high light count, this missing barriers would
produce invalid, non-unique `prefix_sum` indices.
This then resulted in some slots inside `out_light_buf`
never written to, leaving undefined data inside them.

If the buffer was cleared to zero, these undefined light
slots would be interpreted as sun lights and the
shadow setup compute pass would critically fail because
of out of bound memory.

Fix #123195
This commit is contained in:
Clément Foucault
2024-06-18 12:39:16 +02:00
parent bc7cb481da
commit e71ca93031

View File

@@ -55,6 +55,8 @@ void main()
}
}
}
barrier();
}
if (valid_thread) {