mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 22:10:10 +01:00
turnip: don't set SP_FS_CTRL_REG0_VARYING if only fragcoord is used
Fixes artifacts in the subpasses demo, which has a shader using fragcoord without any varyings. It looks like setting this bit when there are no varyings can cause weirdness in some cases (without this change, if the previous shader had <= 8 varyings it would work, but with 9 varyings it would have artifacts). Signed-off-by: Jonathan Marek <jonathan@marek.ca> Reviewed-by: Eric Anholt <eric@anholt.net> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3143> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3143>
This commit is contained in:
parent
4a59bc6df2
commit
5785bcc8a0
1 changed files with 1 additions and 1 deletions
|
|
@ -450,7 +450,7 @@ tu6_emit_fs_config(struct tu_cs *cs, struct tu_shader *shader,
|
|||
A6XX_SP_FS_CTRL_REG0_FULLREGFOOTPRINT(fs->info.max_reg + 1) |
|
||||
A6XX_SP_FS_CTRL_REG0_MERGEDREGS |
|
||||
A6XX_SP_FS_CTRL_REG0_BRANCHSTACK(fs->branchstack);
|
||||
if (fs->total_in > 0 || fs->frag_coord)
|
||||
if (fs->total_in > 0)
|
||||
sp_fs_ctrl |= A6XX_SP_FS_CTRL_REG0_VARYING;
|
||||
if (fs->need_pixlod)
|
||||
sp_fs_ctrl |= A6XX_SP_FS_CTRL_REG0_PIXLODENABLE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue