Commit 0e74e35c authored by Jan Zielinski's avatar Jan Zielinski Committed by Kristian H. Kristensen
Browse files

nir: Don't use empty initializer list in lower_io_arrays

Using empty initializer list in C code causes compilation
issues with MSVC. gcc and clang display warnings (if the
warning level is high enough), but do not fail the build.
MSVC does.

Fixes: ee2050b1

Reviewed-by: Kristian H. Kristensen's avatarKristian H. Kristensen <hoegsberg@google.com>
parent 6b672e34
Pipeline #73638 passed with stages
in 29 minutes and 32 seconds
...@@ -349,7 +349,7 @@ nir_lower_io_arrays_to_elements_no_indirects(nir_shader *shader, ...@@ -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_inputs = _mesa_pointer_hash_table_create(NULL);
struct hash_table *split_outputs = _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) = {}; BITSET_DECLARE(indirects, 4 * VARYING_SLOT_TESS_MAX) = {0};
lower_io_arrays_to_elements(shader, nir_var_shader_out, lower_io_arrays_to_elements(shader, nir_var_shader_out,
indirects, split_outputs, true); indirects, split_outputs, true);
...@@ -387,7 +387,7 @@ nir_lower_io_arrays_to_elements(nir_shader *producer, nir_shader *consumer) ...@@ -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_inputs = _mesa_pointer_hash_table_create(NULL);
struct hash_table *split_outputs = _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) = {}; BITSET_DECLARE(indirects, 4 * VARYING_SLOT_TESS_MAX) = {0};
create_indirects_mask(producer, indirects, nir_var_shader_out); create_indirects_mask(producer, indirects, nir_var_shader_out);
create_indirects_mask(consumer, indirects, nir_var_shader_in); create_indirects_mask(consumer, indirects, nir_var_shader_in);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment