r600g: update dirty_level_mask after the 1-st draw after FB change
authorConstantine Kharlamov <Hi-Angel@yandex.ru>
Thu, 13 Apr 2017 20:56:28 +0000 (23:56 +0300)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 19 Apr 2017 06:15:22 +0000 (08:15 +0200)
commit2a8a569276ded3528917ddf9f006eb7b1d1d66ad
treee21d184919e7bfd9458c178053cc838744751941
parent51deba0eb35d0d27560bb7dad24b8d39abb58be6
r600g: update dirty_level_mask after the 1-st draw after FB change

Ported from radeonsi. Testing with Kane&Lynch2 shows ≈1k skipped updates per
frame on average.

No piglit changes with tests/gpu.py, gbm mode.

Signed-off-by: Constantine Kharlamov <Hi-Angel@yandex.ru>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_pipe.h
src/gallium/drivers/r600/r600_state.c
src/gallium/drivers/r600/r600_state_common.c