mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 17:40:11 +01:00
anv: Loosen anv_bo_allows_aux_map
Instead of requiring that a BO has the has_implicit_ccs flag set, simply require that the BO is aligned according to aux-map requirements. Reviewed-by: Jianxun Zhang <jianxun.zhang@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25003>
This commit is contained in:
parent
ee6e2bc4a3
commit
2cbec81041
1 changed files with 5 additions and 3 deletions
|
|
@ -4926,11 +4926,13 @@ anv_bo_allows_aux_map(const struct anv_device *device,
|
|||
if (device->aux_map_ctx == NULL)
|
||||
return false;
|
||||
|
||||
if (bo->has_implicit_ccs == false)
|
||||
/* Technically, we really only care about what offset the image is bound
|
||||
* into on the BO, but we don't have that information here. As a heuristic,
|
||||
* rely on the BO offset instead.
|
||||
*/
|
||||
if (bo->offset % intel_aux_map_get_alignment(device->aux_map_ctx) != 0)
|
||||
return false;
|
||||
|
||||
assert(bo->offset % intel_aux_map_get_alignment(device->aux_map_ctx) == 0);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue