mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
libs/vkd3d: Fail in GetTimestampFrequency() for queues without timestamp support.
This commit is contained in:
parent
5b6bd40464
commit
1f51eebe12
@ -3641,6 +3641,9 @@ static HRESULT STDMETHODCALLTYPE d3d12_command_queue_GetTimestampFrequency(ID3D1
|
|||||||
|
|
||||||
TRACE("iface %p, frequency %p.\n", iface, frequency);
|
TRACE("iface %p, frequency %p.\n", iface, frequency);
|
||||||
|
|
||||||
|
if (command_queue->vk_queue_timestamp_bits == 0)
|
||||||
|
return E_FAIL;
|
||||||
|
|
||||||
*frequency = 1000000000 / device->vk_info.device_limits.timestampPeriod;
|
*frequency = 1000000000 / device->vk_info.device_limits.timestampPeriod;
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user