mirror of
https://github.com/elwrcl/intel-hard-graphics.git
synced 2026-10-31 19:08:03 +03:00
hasvk: Adapt the video decode series to current conventions.
No functional change. Assisted-by: Claude
This commit is contained in:
1 parent
353385c186
commit
f885682e82
1 file changed
+10
-5
@@ -1487,7 +1487,8 @@ anv_physical_device_free_disk_cache(struct anv_physical_device *device)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
anv_override_engine_counts(int *gc_count, int *g_count, int *c_count, int *v_count)
|
anv_override_engine_counts(int *gc_count, int *g_count, int *c_count,
|
||||||
|
int *v_count)
|
||||||
{
|
{
|
||||||
int gc_override = -1;
|
int gc_override = -1;
|
||||||
int g_override = -1;
|
int g_override = -1;
|
||||||
@@ -1538,9 +1539,11 @@ anv_physical_device_init_queue_families(struct anv_physical_device *pdevice)
|
|||||||
int gc_count =
|
int gc_count =
|
||||||
intel_engines_count(pdevice->engine_info,
|
intel_engines_count(pdevice->engine_info,
|
||||||
INTEL_ENGINE_CLASS_RENDER);
|
INTEL_ENGINE_CLASS_RENDER);
|
||||||
|
|
||||||
int v_count =
|
int v_count =
|
||||||
intel_engines_count(pdevice->engine_info,
|
intel_engines_count(pdevice->engine_info,
|
||||||
I915_ENGINE_CLASS_VIDEO);
|
INTEL_ENGINE_CLASS_VIDEO);
|
||||||
|
|
||||||
int g_count = 0;
|
int g_count = 0;
|
||||||
int c_count = 0;
|
int c_count = 0;
|
||||||
|
|
||||||
@@ -1575,7 +1578,7 @@ anv_physical_device_init_queue_families(struct anv_physical_device *pdevice)
|
|||||||
pdevice->queue.families[family_count++] = (struct anv_queue_family) {
|
pdevice->queue.families[family_count++] = (struct anv_queue_family) {
|
||||||
.queueFlags = VK_QUEUE_VIDEO_DECODE_BIT_KHR,
|
.queueFlags = VK_QUEUE_VIDEO_DECODE_BIT_KHR,
|
||||||
.queueCount = v_count,
|
.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
|
/* Increase count below when other families are added as a reminder to
|
||||||
@@ -2113,8 +2116,10 @@ void anv_GetPhysicalDeviceQueueFamilyProperties2(
|
|||||||
case VK_STRUCTURE_TYPE_QUEUE_FAMILY_VIDEO_PROPERTIES_KHR: {
|
case VK_STRUCTURE_TYPE_QUEUE_FAMILY_VIDEO_PROPERTIES_KHR: {
|
||||||
VkQueueFamilyVideoPropertiesKHR *prop =
|
VkQueueFamilyVideoPropertiesKHR *prop =
|
||||||
(VkQueueFamilyVideoPropertiesKHR *)ext;
|
(VkQueueFamilyVideoPropertiesKHR *)ext;
|
||||||
if (queue_family->queueFlags & VK_QUEUE_VIDEO_DECODE_BIT_KHR)
|
if (queue_family->queueFlags & VK_QUEUE_VIDEO_DECODE_BIT_KHR) {
|
||||||
prop->videoCodecOperations = VK_VIDEO_CODEC_OPERATION_DECODE_H264_BIT_KHR;
|
prop->videoCodecOperations =
|
||||||
|
VK_VIDEO_CODEC_OPERATION_DECODE_H264_BIT_KHR;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in new issue
Block a user