Mesa (main): dzn: Set MAX_RTS to D3D12_SIMULTANEOUS_RENDER_TARGET_COUNT

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Apr 22 08:50:54 UTC 2022


Module: Mesa
Branch: main
Commit: d3836df8d46dc18e5df832be018aa631eb2e613e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d3836df8d46dc18e5df832be018aa631eb2e613e

Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Wed Apr 20 10:23:58 2022 +0200

dzn: Set MAX_RTS to D3D12_SIMULTANEOUS_RENDER_TARGET_COUNT

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 at microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15913>

---

 src/microsoft/vulkan/dzn_private.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/microsoft/vulkan/dzn_private.h b/src/microsoft/vulkan/dzn_private.h
index 58e8cdf7244..4437c282a5a 100644
--- a/src/microsoft/vulkan/dzn_private.h
+++ b/src/microsoft/vulkan/dzn_private.h
@@ -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 {



More information about the mesa-commit mailing list