mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 01:30:08 +01:00
aco: add missing SCC clobber in get_buffer_size
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Fixes: fcd6d83245 ("aco: fix imageSize()/textureSize() with large buffers on GFX8")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7162>
This commit is contained in:
parent
6be2bbec6d
commit
fdb65b8b23
1 changed files with 1 additions and 1 deletions
|
|
@ -5975,7 +5975,7 @@ void get_buffer_size(isel_context *ctx, Temp desc, Temp dst, bool in_elements)
|
|||
Temp size = emit_extract_vector(ctx, desc, 2, s1);
|
||||
|
||||
Temp size_div3 = bld.vop3(aco_opcode::v_mul_hi_u32, bld.def(v1), bld.copy(bld.def(v1), Operand(0xaaaaaaabu)), size);
|
||||
size_div3 = bld.sop2(aco_opcode::s_lshr_b32, bld.def(s1), bld.as_uniform(size_div3), Operand(1u));
|
||||
size_div3 = bld.sop2(aco_opcode::s_lshr_b32, bld.def(s1), bld.def(s1, scc), bld.as_uniform(size_div3), Operand(1u));
|
||||
|
||||
Temp stride = emit_extract_vector(ctx, desc, 1, s1);
|
||||
stride = bld.sop2(aco_opcode::s_bfe_u32, bld.def(s1), bld.def(s1, scc), stride, Operand((5u << 16) | 16u));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue