mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 12:30:11 +01:00
blorp: Ensure aligned HIZ_CCS_WT partial clears
Fixes:5425fcf2cb("intel/blorp: Satisfy HIZ_CCS fast-clear alignments") Reported-by: Sagar Ghuge <sagar.ghuge@intel.com> Tested-by: Ivan Briano <ivan.briano@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6854> (cherry picked from commit7f3e881c6c)
This commit is contained in:
parent
083b992f9d
commit
02f2b9fa7b
2 changed files with 6 additions and 5 deletions
|
|
@ -274,7 +274,7 @@
|
|||
"description": "blorp: Ensure aligned HIZ_CCS_WT partial clears",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "5425fcf2cb39dc9df56593d4460b56688506c0cc"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -834,11 +834,12 @@ blorp_can_hiz_clear_depth(const struct gen_device_info *devinfo,
|
|||
const bool unaligned = (slice_x0 + x0) % 16 || (slice_y0 + y0) % 8 ||
|
||||
(max_x1_y1 ? haligned_x1 % 16 || valigned_y1 % 8 :
|
||||
x1 % 16 || y1 % 8);
|
||||
const bool alignment_used = surf->levels > 1 ||
|
||||
surf->logical_level0_px.depth > 1 ||
|
||||
surf->logical_level0_px.array_len > 1;
|
||||
const bool partial_clear = x0 > 0 || y0 > 0 || !max_x1_y1;
|
||||
const bool multislice_surf = surf->levels > 1 ||
|
||||
surf->logical_level0_px.depth > 1 ||
|
||||
surf->logical_level0_px.array_len > 1;
|
||||
|
||||
if (unaligned && alignment_used)
|
||||
if (unaligned && (partial_clear || multislice_surf))
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue