mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 15:40:11 +01:00
anv: Simplify a case in layout_to_aux_usage
If it's depth, the only possible value of planes[plane].aux_usage is ISL_AUX_USAGE_HIZ at least right now. Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4100>
This commit is contained in:
parent
5cb6c5d11d
commit
65e541ab16
1 changed files with 1 additions and 6 deletions
|
|
@ -1499,12 +1499,7 @@ anv_layout_to_aux_usage(const struct gen_device_info * const devinfo,
|
||||||
|
|
||||||
case ISL_AUX_STATE_COMPRESSED_CLEAR:
|
case ISL_AUX_STATE_COMPRESSED_CLEAR:
|
||||||
case ISL_AUX_STATE_COMPRESSED_NO_CLEAR:
|
case ISL_AUX_STATE_COMPRESSED_NO_CLEAR:
|
||||||
if (aspect == VK_IMAGE_ASPECT_DEPTH_BIT) {
|
return image->planes[plane].aux_usage;
|
||||||
return ISL_AUX_USAGE_HIZ;
|
|
||||||
} else {
|
|
||||||
assert(image->planes[plane].aux_usage != ISL_AUX_USAGE_NONE);
|
|
||||||
return image->planes[plane].aux_usage;
|
|
||||||
}
|
|
||||||
|
|
||||||
case ISL_AUX_STATE_RESOLVED:
|
case ISL_AUX_STATE_RESOLVED:
|
||||||
/* We can only use RESOLVED in read-only layouts because any write will
|
/* We can only use RESOLVED in read-only layouts because any write will
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue