mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
radeonsi/gfx11: fix unaligned SET_CONTEXT_PAIRS_PACKED
It set an invalid register. Luckily it didn't cause any issues.
Fixes: 2ac6816b70 - radeonsi/gfx11: use SET_CONTEXT_REG_PAIRS_PACKED for other states
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26307>
This commit is contained in:
parent
af65af8267
commit
f51b960af1
1 changed files with 1 additions and 1 deletions
|
|
@ -339,7 +339,7 @@
|
|||
if (__cs_context_reg_count >= 2) { \
|
||||
/* Align the count to 2 by duplicating the first register. */ \
|
||||
if (__cs_context_reg_count % 2 == 1) { \
|
||||
gfx11_set_context_reg(__cs_context_regs[0].reg_offset[0] + SI_CONTEXT_REG_OFFSET, \
|
||||
gfx11_set_context_reg(SI_CONTEXT_REG_OFFSET + __cs_context_regs[0].reg_offset[0] * 4, \
|
||||
__cs_context_regs[0].reg_value[0]); \
|
||||
} \
|
||||
assert(__cs_context_reg_count % 2 == 0); \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue