mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
aco: move buffer_store data to VGPR if needed
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
This commit is contained in:
parent
a8195bdf2e
commit
bde9c1e3a1
1 changed files with 1 additions and 1 deletions
|
|
@ -4456,7 +4456,7 @@ void visit_store_ssbo(isel_context *ctx, nir_intrinsic_instr *instr)
|
|||
Temp elem = emit_extract_vector(ctx, data, start + i, RegClass(data.type(), elem_size_bytes / 4));
|
||||
vec->operands[i] = Operand(smem_nonfs ? bld.as_uniform(elem) : elem);
|
||||
}
|
||||
write_data = bld.tmp(smem_nonfs ? RegType::sgpr : data.type(), count * elem_size_bytes / 4);
|
||||
write_data = bld.tmp(!smem ? RegType::vgpr : smem_nonfs ? RegType::sgpr : data.type(), count * elem_size_bytes / 4);
|
||||
vec->definitions[0] = Definition(write_data);
|
||||
ctx->block->instructions.emplace_back(std::move(vec));
|
||||
} else if (!smem && data.type() != RegType::vgpr) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue