diff options
author | Nicolai Hähnle <[email protected]> | 2017-11-15 21:29:56 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-07-03 15:51:12 -0400 |
commit | 44adae42ae3e70f1516712f91978827b35b90c55 (patch) | |
tree | 94694cad288c0ae9eb943e9c4d81cd633f002895 | |
parent | 79b1eaf2fdfaeebea15b75907cddcb424b635dba (diff) |
radeonsi/gfx10: always set up sample locations
Acked-by: Bas Nieuwenhuizen <[email protected]>
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 28a184bf4fb..856b0fde347 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -3353,8 +3353,12 @@ 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. + * + * GFX10 uses sample locations unconditionally, so they always need + * to be set up. */ - if ((nr_samples >= 2 || has_msaa_sample_loc_bug) && + if ((nr_samples >= 2 || has_msaa_sample_loc_bug || + sctx->chip_class >= GFX10) && nr_samples != sctx->sample_locs_num_samples) { sctx->sample_locs_num_samples = nr_samples; si_emit_sample_locations(cs, nr_samples); |