nir_to_tgsi: Declare buffers for all of num_ssbos.
Now all SSBO tests pass on virgl when taking the nir-to-tgsi path. Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11937>
This commit is contained in:
parent
846a4512e9
commit
0253ff6d55
|
@ -445,12 +445,12 @@ ntt_setup_uniforms(struct ntt_compile *c)
|
|||
ureg_DECL_constant2D(c->ureg, 0, 0, var->data.driver_location);
|
||||
}
|
||||
|
||||
nir_foreach_variable_with_modes(var, c->s, nir_var_mem_ssbo) {
|
||||
for (int i = 0; i < c->s->info.num_ssbos; i++) {
|
||||
/* XXX: nv50 uses the atomic flag to set caching for (lowered) atomic
|
||||
* counters
|
||||
*/
|
||||
bool atomic = false;
|
||||
ureg_DECL_buffer(c->ureg, var->data.binding, atomic);
|
||||
ureg_DECL_buffer(c->ureg, i, atomic);
|
||||
}
|
||||
|
||||
for (int i = 0; i < PIPE_MAX_SAMPLERS; i++) {
|
||||
|
|
Loading…
Reference in New Issue