Mesa (main): d3d12: Fully init primconvert config

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Nov 9 01:32:00 UTC 2021


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

Author: Jesse Natalie <jenatali at microsoft.com>
Date:   Mon Nov  8 12:41:39 2021 -0800

d3d12: Fully init primconvert config

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13670>

---

 src/gallium/drivers/d3d12/d3d12_context.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/d3d12/d3d12_context.cpp b/src/gallium/drivers/d3d12/d3d12_context.cpp
index 1e81dc0e7bf..53a0d4b6cf7 100644
--- a/src/gallium/drivers/d3d12/d3d12_context.cpp
+++ b/src/gallium/drivers/d3d12/d3d12_context.cpp
@@ -1988,12 +1988,13 @@ d3d12_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags)
                        PIPE_USAGE_DEFAULT,
                        0, true);
 
-   struct primconvert_config cfg;
+   struct primconvert_config cfg = {};
    cfg.primtypes_mask = 1 << PIPE_PRIM_POINTS |
                         1 << PIPE_PRIM_LINES |
                         1 << PIPE_PRIM_LINE_STRIP |
                         1 << PIPE_PRIM_TRIANGLES |
                         1 << PIPE_PRIM_TRIANGLE_STRIP;
+   cfg.restart_primtypes_mask = cfg.primtypes_mask;
    cfg.fixed_prim_restart = true;
    ctx->primconvert = util_primconvert_create_config(&ctx->base, &cfg);
    if (!ctx->primconvert) {



More information about the mesa-commit mailing list