aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTapani Pälli <[email protected]>2019-10-30 14:43:57 +0200
committerTimothy Arceri <[email protected]>2019-10-31 00:21:44 +0000
commitb380d479989a2663a74003750e3ad0317e57efaf (patch)
tree47b01175409d2c161aa8afb40930f2bc78921160
parentec770085c270cb167c02f299f6985744682933b1 (diff)
nir: fix couple of compile warnings
Fixes "warning: braces around scalar initializer" warnings. Signed-off-by: Tapani Pälli <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]>
-rw-r--r--src/compiler/nir/nir_lower_io_arrays_to_elements.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/nir/nir_lower_io_arrays_to_elements.c b/src/compiler/nir/nir_lower_io_arrays_to_elements.c
index c2f65e73aa3..428860fef45 100644
--- a/src/compiler/nir/nir_lower_io_arrays_to_elements.c
+++ b/src/compiler/nir/nir_lower_io_arrays_to_elements.c
@@ -349,7 +349,7 @@ nir_lower_io_arrays_to_elements_no_indirects(nir_shader *shader,
struct hash_table *split_inputs = _mesa_pointer_hash_table_create(NULL);
struct hash_table *split_outputs = _mesa_pointer_hash_table_create(NULL);
- BITSET_DECLARE(indirects, 4 * VARYING_SLOT_TESS_MAX) = {{0}};
+ BITSET_DECLARE(indirects, 4 * VARYING_SLOT_TESS_MAX) = {0};
lower_io_arrays_to_elements(shader, nir_var_shader_out,
indirects, split_outputs, true);
@@ -387,7 +387,7 @@ nir_lower_io_arrays_to_elements(nir_shader *producer, nir_shader *consumer)
struct hash_table *split_inputs = _mesa_pointer_hash_table_create(NULL);
struct hash_table *split_outputs = _mesa_pointer_hash_table_create(NULL);
- BITSET_DECLARE(indirects, 4 * VARYING_SLOT_TESS_MAX) = {{0}};
+ BITSET_DECLARE(indirects, 4 * VARYING_SLOT_TESS_MAX) = {0};
create_indirects_mask(producer, indirects, nir_var_shader_out);
create_indirects_mask(consumer, indirects, nir_var_shader_in);