The expression 'l1_gpu_addr + l1_index * sizeof(*l1_map)' could cause
bit 47 to be set so it needs to be converted to canonical.
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24077>
if (l1_index_out)
*l1_index_out = l1_index;
if (l1_entry_addr_out)
- *l1_entry_addr_out = l1_addr + l1_index * sizeof(*l1_map);
+ *l1_entry_addr_out = intel_canonical_address(l1_addr + l1_index * sizeof(*l1_map));
if (l1_entry_map_out)
*l1_entry_map_out = &l1_map[l1_index];
}