aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-05-18 10:57:42 -0700
committerJuan A. Suarez Romero <[email protected]>2017-05-31 22:32:04 +0200
commitdeecf2a49a2babcde6ebb7a6c4f83848836145ab (patch)
tree09d514066fcb8377da4bebe277088cf32cd419be
parentfafa17bd19a66777099529448914e09d50d33462 (diff)
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 <[email protected]> Cc: "17.1" <[email protected]> (cherry picked from commit eceaf7e2340fca0079300692733206b2af555bd9) Signed-off-by: Juan A. Suarez Romero <[email protected]>
-rw-r--r--src/intel/vulkan/anv_device.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index 823b97dd371..28b5a1064b3 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -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)