anv: Replace I915_ENGINE_CLASS_VIDEO by INTEL_ENGINE_CLASS_VIDEO
Using the value that is not dependent on the KMD uapi. Not marking as a fixes because both have the same value, so we don't need a backport. Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22058>
This commit is contained in:
committed by
Marge Bot
parent
e743ddbbb4
commit
0818d18d48
@@ -729,7 +729,7 @@ anv_physical_device_init_queue_families(struct anv_physical_device *pdevice)
|
||||
intel_engines_count(pdevice->engine_info,
|
||||
INTEL_ENGINE_CLASS_RENDER);
|
||||
int v_count =
|
||||
intel_engines_count(pdevice->engine_info, I915_ENGINE_CLASS_VIDEO);
|
||||
intel_engines_count(pdevice->engine_info, INTEL_ENGINE_CLASS_VIDEO);
|
||||
int g_count = 0;
|
||||
int c_count = 0;
|
||||
if (debug_get_bool_option("INTEL_COMPUTE_CLASS", false))
|
||||
@@ -769,7 +769,7 @@ anv_physical_device_init_queue_families(struct anv_physical_device *pdevice)
|
||||
pdevice->queue.families[family_count++] = (struct anv_queue_family) {
|
||||
.queueFlags = VK_QUEUE_VIDEO_DECODE_BIT_KHR,
|
||||
.queueCount = v_count,
|
||||
.engine_class = I915_ENGINE_CLASS_VIDEO,
|
||||
.engine_class = INTEL_ENGINE_CLASS_VIDEO,
|
||||
};
|
||||
}
|
||||
/* Increase count below when other families are added as a reminder to
|
||||
|
||||
@@ -545,7 +545,7 @@ genX(init_device_state)(struct anv_device *device)
|
||||
case INTEL_ENGINE_CLASS_COMPUTE:
|
||||
res = init_compute_queue_state(queue);
|
||||
break;
|
||||
case I915_ENGINE_CLASS_VIDEO:
|
||||
case INTEL_ENGINE_CLASS_VIDEO:
|
||||
res = VK_SUCCESS;
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user