OSDN Git Service

radeonsi: track context rolls better for the Vega scissor bug workaround
authorMarek Olšák <marek.olsak@amd.com>
Sun, 7 Oct 2018 02:44:36 +0000 (22:44 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 16 Oct 2018 21:23:25 +0000 (17:23 -0400)
commitfcc70e4855c3bde3cadce9d0d1abf8da7106f643
tree6c0ccaa5d5dcb71e083930cf5376d2ff57fda8c9
parent25ddb15cfe36ff0d1f47e7b34161b545e6f329a8
radeonsi: track context rolls better for the Vega scissor bug workaround

We should get fewer context rolls with the SET_CONTEXT_REG optimization,
but it would have been for nothing if the scissor state rolled the context
anyway. Don't emit the scissor state if there is no context roll.
src/gallium/drivers/radeonsi/si_pipe.h
src/gallium/drivers/radeonsi/si_state.c
src/gallium/drivers/radeonsi/si_state.h
src/gallium/drivers/radeonsi/si_state_binning.c
src/gallium/drivers/radeonsi/si_state_draw.c
src/gallium/drivers/radeonsi/si_state_shaders.c
src/gallium/drivers/radeonsi/si_state_viewport.c