summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-06-23 10:44:16 -0700
committerJason Ekstrand <[email protected]>2017-07-22 20:59:22 -0700
commitd3c01c6a9a9cff89f100e39aec34e76829295317 (patch)
treeef5c38d1a77ada731841b210c3434d811ca745cf /src
parentc8aa5191ebb17457b914330688850e84e026ab8c (diff)
i965/miptree: Partially resolve MCS for texture views
Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/intel_mipmap_tree.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index 91835793120..b31e6ff7ddc 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -2435,14 +2435,14 @@ intel_miptree_prepare_texture_slices(struct brw_context *brw,
aux_supported = clear_supported = true;
} else {
aux_supported = can_texture_with_ccs(brw, mt, view_format);
-
- /* Clear color is specified as ints or floats and the conversion is
- * done by the sampler. If we have a texture view, we would have to
- * perform the clear color conversion manually. Just disable clear
- * color.
- */
- clear_supported = aux_supported && (mt->format == view_format);
}
+
+ /* Clear color is specified as ints or floats and the conversion is
+ * done by the sampler. If we have a texture view, we would have to
+ * perform the clear color conversion manually. Just disable clear
+ * color.
+ */
+ clear_supported = aux_supported && (mt->format == view_format);
} else if (mt->format == MESA_FORMAT_S_UINT8) {
aux_supported = clear_supported = false;
} else {