r600/sfn: Use the constant buffer ID when given
Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8800>
This commit is contained in:
parent
d81439463a
commit
cf23161040
|
@ -893,7 +893,7 @@ bool ShaderFromNirProcessor::emit_load_ubo_vec4(nir_intrinsic_instr* instr)
|
|||
FetchInstruction *ir;
|
||||
if (bufid) {
|
||||
ir = new FetchInstruction(vc_fetch, no_index_offset, trgt, addr, 0,
|
||||
1, nullptr, bim_none);
|
||||
1 + bufid->u32, nullptr, bim_none);
|
||||
} else {
|
||||
PValue bufid = from_nir(instr->src[0], 0, 0);
|
||||
ir = new FetchInstruction(vc_fetch, no_index_offset, trgt, addr, 0,
|
||||
|
|
Loading…
Reference in New Issue