mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 01:18:06 +02:00
nir/lower_tex_projector: Don't use designated initializers
These don't work in MSVC or in older versions of GCC Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89899 Reviewed-by: Mark Janes <mark.a.janes@intel.com>
This commit is contained in:
parent
1aa5738e66
commit
2e3b35a1cb
1 changed files with 2 additions and 1 deletions
|
|
@ -109,7 +109,8 @@ nir_lower_tex_projector_block(nir_block *block, void *void_state)
|
|||
/* Now move the later tex sources down the array so that the projector
|
||||
* disappears.
|
||||
*/
|
||||
nir_src dead = {.is_ssa = false, .ssa = NULL};
|
||||
nir_src dead;
|
||||
memset(&dead, 0, sizeof dead);
|
||||
nir_instr_rewrite_src(&tex->instr, &tex->src[proj_index].src, dead);
|
||||
memmove(&tex->src[proj_index],
|
||||
&tex->src[proj_index + 1],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue