mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-12 03:30:22 +01:00
anv: allow protected GEM context creation
v2: Update new anv_gem_create_context_engines() Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8064>
This commit is contained in:
parent
be201008ca
commit
fd40134487
1 changed files with 6 additions and 1 deletions
|
|
@ -277,6 +277,7 @@ anv_i915_device_setup_context(struct anv_device *device,
|
|||
assert(num_queues <= 64);
|
||||
enum intel_engine_class engine_classes[64];
|
||||
int engine_count = 0;
|
||||
enum intel_gem_create_context_flags flags = 0;
|
||||
for (uint32_t i = 0; i < pCreateInfo->queueCreateInfoCount; i++) {
|
||||
const VkDeviceQueueCreateInfo *queueCreateInfo =
|
||||
&pCreateInfo->pQueueCreateInfos[i];
|
||||
|
|
@ -288,8 +289,12 @@ anv_i915_device_setup_context(struct anv_device *device,
|
|||
|
||||
for (uint32_t j = 0; j < queueCreateInfo->queueCount; j++)
|
||||
engine_classes[engine_count++] = queue_family->engine_class;
|
||||
|
||||
if (pCreateInfo->pQueueCreateInfos[i].flags &
|
||||
VK_DEVICE_QUEUE_CREATE_PROTECTED_BIT)
|
||||
flags |= INTEL_GEM_CREATE_CONTEXT_EXT_PROTECTED_FLAG;
|
||||
}
|
||||
if (!intel_gem_create_context_engines(device->fd, 0 /* flags */,
|
||||
if (!intel_gem_create_context_engines(device->fd, flags,
|
||||
physical_device->engine_info,
|
||||
engine_count, engine_classes,
|
||||
device->vm_id,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue