gallium/radeon: separate DCC starts as disabled (ps_draw_ratio = 0)
authorMarek Olšák <marek.olsak@amd.com>
Tue, 28 Jun 2016 19:02:40 +0000 (21:02 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 29 Jun 2016 18:12:00 +0000 (20:12 +0200)
commit9ae41227c24eac7245d90f27a3d024bccebbacd0
tree23243f8de53d0121b5daa702ea7a530e654fb2f3
parent9fd4eff43c0c1d0e5cb58fafbaa39c7b08bb715a
gallium/radeon: separate DCC starts as disabled (ps_draw_ratio = 0)

DRI3:
- Only slows clears can enable it for the first frame.
- A good PS/draw ratio can enable it for other frames.

DRI2:
- Only slows clears can enable it for a frame.
- Page-flipped color buffers are unref'd at the end of each frame,
  so it can't be enabled in any other way.
- Relying on slow clears is sufficient for our synthetic benchmarks.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeon/r600_texture.c