From dda482384446dae9b48077a2e1bd51b3c1fce8fc Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Fri, 6 Mar 2015 15:04:47 +0800 Subject: [PATCH] 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. --- src/gallium/drivers/ilo/ilo_layout.c | 3 +-- 1 file changed, 1 insertion(+), 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) { /* -- 2.30.2