[PATCH vkd3d 8/8] vkd3d: Reject D3D12_COMMAND_QUEUE_PRIORITY_GLOBAL_REALTIME.

Józef Kucia joseph.kucia at gmail.com
Wed Apr 17 10:26:41 CDT 2019


From: Józef Kucia <jkucia at codeweavers.com>

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
 include/vkd3d_d3d12.idl | 1 +
 libs/vkd3d/command.c    | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/include/vkd3d_d3d12.idl b/include/vkd3d_d3d12.idl
index 3cefd1fdb33f..ec78c6652109 100644
--- a/include/vkd3d_d3d12.idl
+++ b/include/vkd3d_d3d12.idl
@@ -1547,6 +1547,7 @@ typedef enum D3D12_COMMAND_QUEUE_PRIORITY
 {
     D3D12_COMMAND_QUEUE_PRIORITY_NORMAL = 0,
     D3D12_COMMAND_QUEUE_PRIORITY_HIGH = 100,
+    D3D12_COMMAND_QUEUE_PRIORITY_GLOBAL_REALTIME = 10000,
 } D3D12_COMMAND_QUEUE_PRIORITY;
 
 typedef enum D3D12_COMMAND_QUEUE_FLAGS
diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c
index 7b4daa4c0564..cdccfe8dca56 100644
--- a/libs/vkd3d/command.c
+++ b/libs/vkd3d/command.c
@@ -5301,6 +5301,12 @@ static HRESULT d3d12_command_queue_init(struct d3d12_command_queue *queue,
     if (!(queue->vkd3d_queue = d3d12_device_get_vkd3d_queue(device, desc->Type)))
         return E_NOTIMPL;
 
+    if (desc->Priority == D3D12_COMMAND_QUEUE_PRIORITY_GLOBAL_REALTIME)
+    {
+        FIXME("Global realtime priority is not implemented.\n");
+        return E_NOTIMPL;
+    }
+
     if (desc->Priority)
         FIXME("Ignoring priority %#x.\n", desc->Priority);
     if (desc->Flags)
-- 
2.21.0




More information about the wine-devel mailing list