mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 01:50:12 +01:00
anv: Predicate 48bit support on gen >= 8
This doesn't matter right now since it only affects whether or not we
set the kernel bit but, if we ever do anything else based on it, we'll
want it to be correct per-gen.
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Cc: "17.1" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit eceaf7e234)
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
This commit is contained in:
parent
fafa17bd19
commit
deecf2a49a
1 changed files with 6 additions and 1 deletions
|
|
@ -196,7 +196,12 @@ anv_physical_device_init(struct anv_physical_device *device,
|
|||
goto fail;
|
||||
}
|
||||
|
||||
device->supports_48bit_addresses = anv_gem_supports_48b_addresses(fd);
|
||||
/* The kernel query only tells us whether or not the kernel supports the
|
||||
* EXEC_OBJECT_SUPPORTS_48B_ADDRESS flag and not whether or not the
|
||||
* hardware has actual 48bit address support.
|
||||
*/
|
||||
device->supports_48bit_addresses =
|
||||
(device->info.gen >= 8) && anv_gem_supports_48b_addresses(fd);
|
||||
|
||||
result = anv_compute_heap_size(fd, &device->heap_size);
|
||||
if (result != VK_SUCCESS)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue