From: Chia-I Wu Date: Fri, 6 Mar 2015 07:04:47 +0000 (+0800) Subject: ilo: do not check for interleaved_samples X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dda482384446dae9b48077a2e1bd51b3c1fce8fc;p=mesa.git 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. --- 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) { /*