mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 07:20:16 +01:00
iris: Allow resolving clear color of CCS_D surfaces.
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
df4c2ec5e1
commit
8bbd4f32bf
1 changed files with 2 additions and 6 deletions
|
|
@ -756,9 +756,8 @@ get_ccs_d_resolve_op(enum isl_aux_state aux_state,
|
|||
{
|
||||
assert(aux_usage == ISL_AUX_USAGE_NONE || aux_usage == ISL_AUX_USAGE_CCS_D);
|
||||
|
||||
const bool ccs_supported = aux_usage == ISL_AUX_USAGE_CCS_D;
|
||||
|
||||
assert(ccs_supported == fast_clear_supported);
|
||||
const bool ccs_supported =
|
||||
(aux_usage == ISL_AUX_USAGE_CCS_D) && fast_clear_supported;
|
||||
|
||||
switch (aux_state) {
|
||||
case ISL_AUX_STATE_CLEAR:
|
||||
|
|
@ -791,9 +790,6 @@ get_ccs_e_resolve_op(enum isl_aux_state aux_state,
|
|||
aux_usage == ISL_AUX_USAGE_CCS_D ||
|
||||
aux_usage == ISL_AUX_USAGE_CCS_E);
|
||||
|
||||
if (aux_usage == ISL_AUX_USAGE_CCS_D)
|
||||
assert(fast_clear_supported);
|
||||
|
||||
switch (aux_state) {
|
||||
case ISL_AUX_STATE_CLEAR:
|
||||
case ISL_AUX_STATE_PARTIAL_CLEAR:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue