mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 19:30:11 +01:00
radeonsi: don't clear G_028644_OFFSET
Before11d1309d82this field was updated even when G_028644_PT_SPRITE_TEX was 0. See https://gitlab.freedesktop.org/mesa/mesa/-/issues/5423 Fixes:11d1309d82("radeonsi: restructure si_get_ps_input_cntl for future refactoring") Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13105>
This commit is contained in:
parent
19a71e79b8
commit
dfa4a85ddf
1 changed files with 3 additions and 3 deletions
|
|
@ -84,9 +84,9 @@ static void si_emit_spi_map(struct si_context *sctx)
|
|||
if (input.semantic == VARYING_SLOT_PNTC ||
|
||||
(input.semantic >= VARYING_SLOT_TEX0 && input.semantic <= VARYING_SLOT_TEX7 &&
|
||||
rs->sprite_coord_enable & (1 << (input.semantic - VARYING_SLOT_TEX0)))) {
|
||||
/* Overwrite the whole value for sprite coordinates. */
|
||||
ps_input_cntl = S_028644_OFFSET(0) |
|
||||
S_028644_PT_SPRITE_TEX(1);
|
||||
/* Overwrite the whole value (except OFFSET) for sprite coordinates. */
|
||||
ps_input_cntl &= ~C_028644_OFFSET;
|
||||
ps_input_cntl |= S_028644_PT_SPRITE_TEX(1);
|
||||
if (input.fp16_lo_hi_valid & 0x1) {
|
||||
ps_input_cntl |= S_028644_FP16_INTERP_MODE(1) |
|
||||
S_028644_ATTR0_VALID(1);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue