anv: Enable MSAA compression
This just enables basic MSAA compression (no fast clears) for all multisampled surfaces. This improves the framerate of the Sascha "multisampling" demo by 76% on my Sky Lake laptop. Running Talos on medium settings with 8x MSAA, this improves the framerate in the benchmark by 80%. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Chad Versace <chadversary@chromium.org>
This commit is contained in:
@@ -222,6 +222,11 @@ color_attachment_compute_aux_usage(struct anv_device *device,
|
||||
att_state->input_aux_usage = ISL_AUX_USAGE_NONE;
|
||||
att_state->fast_clear = false;
|
||||
return;
|
||||
} else if (iview->image->aux_usage == ISL_AUX_USAGE_MCS) {
|
||||
att_state->aux_usage = ISL_AUX_USAGE_MCS;
|
||||
att_state->input_aux_usage = ISL_AUX_USAGE_MCS;
|
||||
att_state->fast_clear = false;
|
||||
return;
|
||||
}
|
||||
|
||||
assert(iview->image->aux_surface.isl.usage & ISL_SURF_USAGE_CCS_BIT);
|
||||
|
Reference in New Issue
Block a user