radeonsi: emit sample locations also when nr_samples == 1
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 15 Nov 2016 14:42:18 +0000 (15:42 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 18 Nov 2016 08:48:46 +0000 (09:48 +0100)
commit9882ed85bd603bf729c6d56c7f1922a477159b36
tree0e59fd86b3c4c74d6c298da03f230a9986976262
parent70454f5b55d72c86d9a73bb149f20f66ae43ded7
radeonsi: emit sample locations also when nr_samples == 1

Since the state tracker now enables MSAA in the hardware for the case
nr_samples == 1 as well, we need to set sample locations correctly for
this case.

The Polaris override is still needed for the non-MSAA case (when
nr_samples == 0).

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
src/gallium/drivers/radeonsi/si_state.c