projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b331e4
)
radeonsi: emit sample locations for 1xAA only when the hw bug is present
author
Marek Olšák
<marek.olsak@amd.com>
Sun, 7 Oct 2018 02:53:33 +0000
(22:53 -0400)
committer
Marek Olšák
<marek.olsak@amd.com>
Tue, 16 Oct 2018 21:23:25 +0000
(17:23 -0400)
src/gallium/drivers/radeonsi/si_state.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeonsi/si_state.c
b/src/gallium/drivers/radeonsi/si_state.c
index 8e4cdddf0b9a57e6fd95ea9730893b018144c21c..b63e70092db56ac6f530196bfb4b3137e6000670 100644
(file)
--- a/
src/gallium/drivers/radeonsi/si_state.c
+++ b/
src/gallium/drivers/radeonsi/si_state.c
@@
-3261,10
+3261,8
@@
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 (has_msaa_sample_loc_bug)
- nr_samples = MAX2(nr_samples, 1);
-
- if (nr_samples != sctx->sample_locs_num_samples) {
+ if ((nr_samples >= 2 || has_msaa_sample_loc_bug) &&
+ nr_samples != sctx->sample_locs_num_samples) {
sctx->sample_locs_num_samples = nr_samples;
si_emit_sample_locations(cs, nr_samples);
}