radeonsi: move PA_CL_NGG_CNTL emission into rasterizer state
authorMarek Olšák <marek.olsak@amd.com>
Sun, 14 May 2023 23:52:47 +0000 (19:52 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 6 Jun 2023 18:01:35 +0000 (18:01 +0000)
commitf6d861a1c18eccc9a245e7ab20bc51f3f10e9a09
treea3b4ea150e078877b2a4098dac26f6fa97eee810
parent941e214fe7f7df2bf1e3f5b665aa7f48033198cf
radeonsi: move PA_CL_NGG_CNTL emission into rasterizer state

It's a better place. Edge flags only have effect if polygon mode is
enabled. Changing shaders should no longer roll the context due to line
culling flipping EDGE_FLAG_ENA.

Acked-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22833>
src/gallium/drivers/radeonsi/si_gfx_cs.c
src/gallium/drivers/radeonsi/si_shader.h
src/gallium/drivers/radeonsi/si_state.c
src/gallium/drivers/radeonsi/si_state.h
src/gallium/drivers/radeonsi/si_state_shaders.cpp