mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 22:08:26 +02:00
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>
This commit is contained in:
parent
70454f5b55
commit
9882ed85bd
1 changed files with 4 additions and 1 deletions
|
|
@ -2632,7 +2632,10 @@ static void si_emit_msaa_sample_locs(struct si_context *sctx,
|
|||
/* On Polaris, the small primitive filter uses the sample locations
|
||||
* even when MSAA is off, so we need to make sure they're set to 0.
|
||||
*/
|
||||
if ((nr_samples > 1 || sctx->b.family >= CHIP_POLARIS10) &&
|
||||
if (sctx->b.family >= CHIP_POLARIS10)
|
||||
nr_samples = MAX2(nr_samples, 1);
|
||||
|
||||
if (nr_samples >= 1 &&
|
||||
(nr_samples != sctx->msaa_sample_locs.nr_samples)) {
|
||||
sctx->msaa_sample_locs.nr_samples = nr_samples;
|
||||
cayman_emit_msaa_sample_locs(cs, nr_samples);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue