radeonsi: add a separate dirty mask for prefetches

Graphics / Mesa 3D Graphics Library / Mesa - Marek Olšák [amd.com] - 7 August 2017 15:12 EDT

so that we don't rely on si_pm4_state_enabled_and_changed, allowing us to move prefetches after draw calls.

v2: ckear the dirty mask after unbinding shaders

e887c68 radeonsi: add a separate dirty mask for prefetches
src/gallium/drivers/radeonsi/si_cp_dma.c | 16 ++++++------
src/gallium/drivers/radeonsi/si_descriptors.c | 3 +--
src/gallium/drivers/radeonsi/si_hw_context.c | 16 ++++++++++--
src/gallium/drivers/radeonsi/si_pipe.h | 10 +++++++-
src/gallium/drivers/radeonsi/si_state_draw.c | 2 +-
src/gallium/drivers/radeonsi/si_state_shaders.c | 33 +++++++++++++++++++++++--
6 files changed, 64 insertions(+), 16 deletions(-)

Upstream: cgit.freedesktop.org


  • Share