mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 16:50:10 +01:00
anv: Set VM control to true in Xe KMD
Xe KMD needs VMs to be created to work. Setting this on Xe KMD code path allow us to simply a feature check in init_queue_families(). Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28161>
This commit is contained in:
parent
c20388d617
commit
27ab5fcf9f
3 changed files with 3 additions and 3 deletions
|
|
@ -2107,8 +2107,7 @@ anv_physical_device_init_queue_families(struct anv_physical_device *pdevice)
|
|||
intel_engines_count(pdevice->engine_info, INTEL_ENGINE_CLASS_VIDEO);
|
||||
int g_count = 0;
|
||||
int c_count = 0;
|
||||
const bool kernel_supports_non_render_engines =
|
||||
pdevice->info.kmd_type == INTEL_KMD_TYPE_XE || pdevice->has_vm_control;
|
||||
const bool kernel_supports_non_render_engines = pdevice->has_vm_control;
|
||||
const bool sparse_supports_non_render_engines =
|
||||
pdevice->sparse_type != ANV_SPARSE_TYPE_TRTT;
|
||||
const bool can_use_non_render_engines =
|
||||
|
|
|
|||
|
|
@ -1013,7 +1013,7 @@ struct anv_physical_device {
|
|||
/** True if we can create protected contexts. */
|
||||
bool has_protected_contexts;
|
||||
|
||||
/** Whether the i915 driver has the ability to create VM objects */
|
||||
/** Whether KMD has the ability to create VM objects */
|
||||
bool has_vm_control;
|
||||
|
||||
/** True if we have the means to do sparse binding (e.g., a Kernel driver
|
||||
|
|
|
|||
|
|
@ -86,6 +86,7 @@ anv_xe_physical_device_get_parameters(struct anv_physical_device *device)
|
|||
"unable to query device config");
|
||||
|
||||
device->has_exec_timeline = true;
|
||||
device->has_vm_control = true;
|
||||
device->max_context_priority =
|
||||
drm_sched_priority_to_vk_priority(config->info[DRM_XE_QUERY_CONFIG_MAX_EXEC_QUEUE_PRIORITY]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue