[Mesa-dev] [PATCH 2/4] i965: Add missing braces in initializer
Francesco Ansanelli
francians at gmail.com
Wed Jul 20 07:49:33 UTC 2016
---
.../drivers/dri/i965/brw_fs_vector_splitting.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp b/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp
index 5c05586..0e16415 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp
@@ -373,7 +373,7 @@ brw_do_vector_splitting(exec_list *instructions)
ralloc_free(name);
if (entry->var->constant_initializer) {
- ir_constant_data data = {0};
+ ir_constant_data data = {{0}};
assert(entry->var->data.has_initializer);
if (entry->var->type->is_double()) {
data.d[0] = entry->var->constant_initializer->value.d[i];
--
1.7.9.5
More information about the mesa-dev
mailing list