mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 04:20:08 +01:00
radeonsi: add missing args in spi_ps_input_ena when fbfetch output
Fixes dEQP tests which uses fbfetch output when using ACO. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Signed-off-by: Qiang Yu <yuq825@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26298>
This commit is contained in:
parent
5b45304624
commit
90dc83fc9f
1 changed files with 8 additions and 0 deletions
|
|
@ -2678,6 +2678,14 @@ si_set_spi_ps_input_config(struct si_shader *shader)
|
|||
if (key->ps.mono.point_smoothing)
|
||||
shader->config.spi_ps_input_ena |= S_0286CC_PERSP_CENTER_ENA(1);
|
||||
|
||||
/* See fetch_framebuffer() for used args when fbfetch output. */
|
||||
if (info->base.fs.uses_fbfetch_output) {
|
||||
shader->config.spi_ps_input_ena |= S_0286CC_POS_FIXED_PT_ENA(1);
|
||||
|
||||
if (key->ps.mono.fbfetch_layered || key->ps.mono.fbfetch_msaa)
|
||||
shader->config.spi_ps_input_ena |= S_0286CC_ANCILLARY_ENA(1);
|
||||
}
|
||||
|
||||
if (shader->is_monolithic) {
|
||||
si_fixup_spi_ps_input_config(shader);
|
||||
shader->config.spi_ps_input_addr = shader->config.spi_ps_input_ena;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue