dzn: Set MAX_RTS to D3D12_SIMULTANEOUS_RENDER_TARGET_COUNT
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 20 Apr 2022 08:23:58 +0000 (10:23 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Fri, 22 Apr 2022 08:07:22 +0000 (01:07 -0700)
D3D12_SIMULTANEOUS_RENDER_TARGET_COUNT == 8, so no functional change
here, it's just cleaner to use the D3D12 definition.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15913>

src/microsoft/vulkan/dzn_private.h

index 58e8cdf..4437c28 100644 (file)
@@ -662,7 +662,7 @@ struct dzn_descriptor_update_template {
    const struct dzn_descriptor_update_template_entry *entries;
 };
 
-#define MAX_RTS 8
+#define MAX_RTS D3D12_SIMULTANEOUS_RENDER_TARGET_COUNT
 #define MAX_INPUT_ATTACHMENTS 4
 
 struct dzn_subpass {