radeonsi: ensure cache flushes happen before SET_PREDICATION packets
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 25 Aug 2017 07:04:40 +0000 (09:04 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 4 Sep 2017 11:50:57 +0000 (13:50 +0200)
commit50283109aa2b1a3fd92e92eb1c85426444ef508e
tree83fb46eb66bf4a59630fa188c31e906cde73ed8f
parent097cfe9fdebd74b728a8baf48715224d360ddb6d
radeonsi: ensure cache flushes happen before SET_PREDICATION packets

The data is read when the render_cond_atom is emitted, so we must
delay emitting the atom until after the flush.

Fixes: 0fe0320dc074 ("radeonsi: use optimal packet order when doing a pipeline sync")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/r600_pipe_common.h
src/gallium/drivers/radeon/r600_query.c
src/gallium/drivers/radeonsi/si_state_draw.c