radeonsi: fix ARB_transform_feedback_overflow_query on <= VI
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 25 Aug 2017 14:19:56 +0000 (16:19 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 4 Sep 2017 11:50:54 +0000 (13:50 +0200)
commit097cfe9fdebd74b728a8baf48715224d360ddb6d
tree6bad1a029ae0466f38f7bc7c78e4211983ee9a70
parent55df3d228679b5e57a1b13fbd9124977f548a66a
radeonsi: fix ARB_transform_feedback_overflow_query on <= VI

The result written by the shader workaround needs to be written back, or
the CP may read stale data.

Fixes: 78476cfe071a ("radeonsi: enable ARB_transform_feedback_overflow_query")
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_pipe.c