diff options
author | Lionel Landwerlin <lionel.g.landwerlin@intel.com> | 2020-12-16 14:09:55 +0200 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-10-27 10:53:18 +0000 |
commit | ed7d64962ee05d2c88fb7482c627799573b4a135 (patch) | |
tree | 3f9a74cb5e82af8b6f3d620668a57c09fed1e232 /src/intel/vulkan/anv_device.c | |
parent | 4172596382ec78973c63cd800569e74e747a52da (diff) |
intel/common: add detection of protected context support
v2: Add anv bits
Fix missing i915 extension chaining helper
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8092>
Diffstat (limited to 'src/intel/vulkan/anv_device.c')
-rw-r--r-- | src/intel/vulkan/anv_device.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index b4f98667a64..337045bfa12 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -900,6 +900,13 @@ anv_physical_device_try_create(struct vk_instance *vk_instance, device->supports_48bit_addresses = device->gtt_size > (4ULL << 30 /* GiB */); + /* We currently only have the right bits for instructions in Gen12+. If the + * kernel ever starts supporting that feature on previous generations, + * we'll need to edit genxml prior to enabling here. + */ + device->has_protected_contexts = device->info.ver >= 12 && + intel_gem_supports_protected_context(fd); + result = anv_physical_device_init_heaps(device, fd); if (result != VK_SUCCESS) goto fail_base; |