mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-23 22:40:34 +01:00
turnip: Ensure that there is no renderpass rotation in binning
It appears that A6XX_GRAS_SC_CNTL::rotation applies to the binning, so we should ensure there is no unexpected rotations and apply with A6XX_GRAS_SC_CNTL during the binning pass. Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21148>
This commit is contained in:
parent
43ea1f2dfb
commit
855fa78866
1 changed files with 7 additions and 1 deletions
|
|
@ -555,9 +555,15 @@ tu_cs_emit_draw_state(struct tu_cs *cs, uint32_t id, struct tu_draw_state state)
|
|||
enable_mask = CP_SET_DRAW_STATE__0_GMEM;
|
||||
break;
|
||||
case TU_DRAW_STATE_INPUT_ATTACHMENTS_SYSMEM:
|
||||
case TU_DRAW_STATE_PRIM_MODE_SYSMEM:
|
||||
enable_mask = CP_SET_DRAW_STATE__0_SYSMEM;
|
||||
break;
|
||||
case TU_DRAW_STATE_PRIM_MODE_SYSMEM:
|
||||
/* By also applying the state during binning we ensure that there
|
||||
* is no rotation applied, by previous A6XX_GRAS_SC_CNTL::rotation.
|
||||
*/
|
||||
enable_mask =
|
||||
CP_SET_DRAW_STATE__0_SYSMEM | CP_SET_DRAW_STATE__0_BINNING;
|
||||
break;
|
||||
default:
|
||||
enable_mask = CP_SET_DRAW_STATE__0_GMEM |
|
||||
CP_SET_DRAW_STATE__0_SYSMEM |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue