r600/sfn: Change sampler_index to texture_index in buffer txs
Signed-off-by: Vitaliy Triang3l Kuzmin <triang3l@yandex.ru> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26068>
This commit is contained in:
committed by
Marge Bot
parent
2e83aed8b3
commit
4f86353f4f
@@ -677,9 +677,9 @@ TexInstr::emit_tex_txs(nir_tex_instr *tex,
|
||||
if (tex->sampler_dim == GLSL_SAMPLER_DIM_BUF) {
|
||||
if (shader.chip_class() >= ISA_CC_EVERGREEN) {
|
||||
shader.emit_instruction(new QueryBufferSizeInstr(
|
||||
dest, {0, 7, 7, 7}, tex->sampler_index + R600_MAX_CONST_BUFFERS));
|
||||
dest, {0, 7, 7, 7}, tex->texture_index + R600_MAX_CONST_BUFFERS));
|
||||
} else {
|
||||
int id = 2 * tex->sampler_index + (512 + R600_BUFFER_INFO_OFFSET / 16) + 1;
|
||||
int id = 2 * tex->texture_index + (512 + R600_BUFFER_INFO_OFFSET / 16) + 1;
|
||||
auto src = vf.uniform(id, 1, R600_BUFFER_INFO_CONST_BUFFER);
|
||||
shader.emit_instruction(
|
||||
new AluInstr(op1_mov, dest[0], src, AluInstr::last_write));
|
||||
|
||||
Reference in New Issue
Block a user