mirror of https://gitlab.freedesktop.org/mesa/mesa
radv/video: don't advertise timestamp bits for decode/encode
At this point I'm not sure if the queues can support timestamps. Acked-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25900>
This commit is contained in:
parent
ee64a385b6
commit
16682b6054
|
@ -2297,7 +2297,7 @@ radv_get_physical_device_queue_family_properties(struct radv_physical_device *pd
|
|||
*pQueueFamilyProperties[idx] = (VkQueueFamilyProperties){
|
||||
.queueFlags = VK_QUEUE_VIDEO_DECODE_BIT_KHR,
|
||||
.queueCount = pdev->info.ip[pdev->vid_decode_ip].num_queues,
|
||||
.timestampValidBits = 64,
|
||||
.timestampValidBits = 0,
|
||||
.minImageTransferGranularity = (VkExtent3D){1, 1, 1},
|
||||
};
|
||||
idx++;
|
||||
|
@ -2323,7 +2323,7 @@ radv_get_physical_device_queue_family_properties(struct radv_physical_device *pd
|
|||
*pQueueFamilyProperties[idx] = (VkQueueFamilyProperties){
|
||||
.queueFlags = VK_QUEUE_VIDEO_ENCODE_BIT_KHR,
|
||||
.queueCount = pdev->info.ip[AMD_IP_VCN_ENC].num_queues,
|
||||
.timestampValidBits = 64,
|
||||
.timestampValidBits = 0,
|
||||
.minImageTransferGranularity = (VkExtent3D){1, 1, 1},
|
||||
};
|
||||
idx++;
|
||||
|
|
|
@ -2648,6 +2648,9 @@ radv_CmdWriteTimestamp2(VkCommandBuffer commandBuffer, VkPipelineStageFlags2 sta
|
|||
|
||||
radv_cs_add_buffer(device->ws, cs, pool->bo);
|
||||
|
||||
assert(cmd_buffer->qf != RADV_QUEUE_VIDEO_DEC &&
|
||||
cmd_buffer->qf != RADV_QUEUE_VIDEO_ENC);
|
||||
|
||||
if (cmd_buffer->qf == RADV_QUEUE_TRANSFER) {
|
||||
if (instance->drirc.flush_before_timestamp_write) {
|
||||
radeon_check_space(device->ws, cmd_buffer->cs, 1);
|
||||
|
|
Loading…
Reference in New Issue