Mesa (main): dzn: Allow multiDrawIndirect and drawIndirectFirstInstance
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Apr 22 10:07:39 UTC 2022
Module: Mesa
Branch: main
Commit: ece5e27a7fcd50c0a9718b7506b0edee542ec50d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ece5e27a7fcd50c0a9718b7506b0edee542ec50d
Author: Boris Brezillon <boris.brezillon at collabora.com>
Date: Wed Apr 6 18:25:54 2022 +0200
dzn: Allow multiDrawIndirect and drawIndirectFirstInstance
Those are already supported, let's just toggle the switch.
Acked-by: Jesse Natalie <jenatali at microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15914>
---
src/microsoft/vulkan/dzn_device.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/microsoft/vulkan/dzn_device.c b/src/microsoft/vulkan/dzn_device.c
index 3e3725ded84..69dd7d221ff 100644
--- a/src/microsoft/vulkan/dzn_device.c
+++ b/src/microsoft/vulkan/dzn_device.c
@@ -1021,8 +1021,8 @@ dzn_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice,
.sampleRateShading = true,
.dualSrcBlend = false,
.logicOp = false,
- .multiDrawIndirect = false,
- .drawIndirectFirstInstance = false,
+ .multiDrawIndirect = true,
+ .drawIndirectFirstInstance = true,
.depthClamp = false,
.depthBiasClamp = false,
.fillModeNonSolid = false,
@@ -1361,7 +1361,7 @@ dzn_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice,
.subTexelPrecisionBits = 4,
.mipmapPrecisionBits = 4,
.maxDrawIndexedIndexValue = 0x00ffffff,
- .maxDrawIndirectCount = 1,
+ .maxDrawIndirectCount = UINT32_MAX,
.maxSamplerLodBias = 2.0f,
.maxSamplerAnisotropy = 1.0f,
.maxViewports = 1,
More information about the mesa-commit
mailing list