OSDN Git Service

radeonsi: fix Polaris MSAA regression
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 16 Jul 2016 18:37:29 +0000 (20:37 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 23 Jul 2016 13:36:38 +0000 (15:36 +0200)
commitf755da0f2f8609e603b50424aa254358eb72fa25
tree0d0cfcf2a8a2e49109461ad37a8e4cb74bf3586a
parentabb2a865a49b0a4c3d2c0a4a0024d72784393188
radeonsi: fix Polaris MSAA regression

The regression was introduced by commit d938b8c. The problem here is that in
order to use the small primitive filter, we need to explicitly set the sample
locations to 0. But the DB doesn't properly process the change of sample
locations without a flush, and so we can end up with incorrect Z values.

Instead of doing a flush, just disable the small primitive filter when MSAA
is force-disabled.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96908
Cc: 12.0 <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/radeonsi/si_state.c
src/gallium/drivers/radeonsi/sid.h