diff options
author | Dave Airlie <[email protected]> | 2019-07-25 09:33:36 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2019-07-25 10:02:22 +1000 |
commit | 16fcbb2eba95d0ec04c775894165e964b63d8e6f (patch) | |
tree | 66c11438de52ed29e2c19fcd9bb2896454fa7d60 /src/gallium/auxiliary | |
parent | 97c8314c5fee925cc25daf9ac9ba225f86562805 (diff) |
gallium: fix windows build from params change.
This is why we can't have nice things. I'm sure there's someway
to do this with {0} but I really don't have time for that.
Fixes: 2631fd3b0bf ("gallivm: rework lp_build_tgsi_soa to take a struct")
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_llvm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/gallium/auxiliary/draw/draw_llvm.c index d9a93c3d667..d4c89a85146 100644 --- a/src/gallium/auxiliary/draw/draw_llvm.c +++ b/src/gallium/auxiliary/draw/draw_llvm.c @@ -637,7 +637,8 @@ generate_vs(struct draw_llvm_variant *variant, LLVMValueRef num_ssbos_ptr = draw_jit_context_num_vs_ssbos(variant->gallivm, context_ptr); - struct lp_build_tgsi_params params = {}; + struct lp_build_tgsi_params params; + memset(¶ms, 0, sizeof(params)); params.type = vs_type; params.mask = bld_mask; @@ -2379,7 +2380,8 @@ draw_gs_llvm_generate(struct draw_llvm *llvm, draw_gs_llvm_dump_variant_key(&variant->key); } - struct lp_build_tgsi_params params = {}; + struct lp_build_tgsi_params params; + memset(¶ms, 0, sizeof(params)); params.type = gs_type; params.mask = &mask; |