aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2015-03-06 15:04:47 +0800
committerChia-I Wu <[email protected]>2015-03-07 01:38:35 +0800
commitdda482384446dae9b48077a2e1bd51b3c1fce8fc (patch)
tree4f01af9633fb12674047a29712e68e572cda730d /src
parent56ede80940751bfcdaf26e9c23e439d37ef0e96b (diff)
ilo: do not check for interleaved_samples
interleaved_samples is only zero-initialized when layout_want_mcs() is called. We should not check for it. There is also no need to.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/ilo/ilo_layout.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/ilo/ilo_layout.c b/src/gallium/drivers/ilo/ilo_layout.c
index 8f83ccb3a08..a99e445780e 100644
--- a/src/gallium/drivers/ilo/ilo_layout.c
+++ b/src/gallium/drivers/ilo/ilo_layout.c
@@ -737,8 +737,7 @@ layout_want_mcs(struct ilo_layout *layout,
* "This field must be set to 0 for all SINT MSRTs when all RT channels
* are not written"
*/
- if (templ->nr_samples > 1 && !layout->interleaved_samples &&
- !util_format_is_pure_sint(templ->format)) {
+ if (templ->nr_samples > 1 && !util_format_is_pure_sint(templ->format)) {
want_mcs = true;
} else if (templ->nr_samples <= 1) {
/*