mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 10:50:10 +01:00
anv/cmd_buffer: Don't assume CCS_E includes CCS_D
There's no longer a clear-only compression mode of CCS on Gen12+. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
4f0b5f9732
commit
300d77c2fa
1 changed files with 2 additions and 1 deletions
|
|
@ -288,7 +288,8 @@ color_attachment_compute_aux_usage(struct anv_device * device,
|
|||
* In other words, we can only sample from a fast-cleared image if it
|
||||
* also supports color compression.
|
||||
*/
|
||||
if (isl_format_supports_ccs_e(&device->info, iview->planes[0].isl.format)) {
|
||||
if (isl_format_supports_ccs_e(&device->info, iview->planes[0].isl.format) &&
|
||||
isl_format_supports_ccs_d(&device->info, iview->planes[0].isl.format)) {
|
||||
att_state->input_aux_usage = ISL_AUX_USAGE_CCS_D;
|
||||
|
||||
/* While fast-clear resolves and partial resolves are fairly cheap in the
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue