mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
intel: reduce minimum memory alignment on Gfx12.5
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Tested-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23198>
This commit is contained in:
parent
6dbe165b2a
commit
9c67dde401
1 changed files with 2 additions and 5 deletions
|
|
@ -610,12 +610,9 @@ bool intel_device_info_i915_get_info_from_fd(int fd, struct intel_device_info *d
|
|||
if (getparam(fd, I915_PARAM_HAS_CONTEXT_ISOLATION, &val))
|
||||
devinfo->has_context_isolation = val;
|
||||
|
||||
/* TODO: i915 don't require anymore the 2Mb alignment for gfx 12.5 and
|
||||
* newer but using 64k brings some issues like unaligned offsets with
|
||||
* aux map aligned to 1Mb in MTL.
|
||||
*/
|
||||
/* TODO: We might be able to reduce alignment to 4Kb on DG1. */
|
||||
if (devinfo->verx10 >= 125)
|
||||
devinfo->mem_alignment = 2 * 1024 * 1024;
|
||||
devinfo->mem_alignment = 64 * 1024;
|
||||
else if (devinfo->has_local_mem)
|
||||
devinfo->mem_alignment = 64 * 1024;
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue