summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2018-11-20 19:06:22 -0500
committerMarek Olšák <[email protected]>2018-11-20 19:06:40 -0500
commit25d95ed5359b88b297277fceac7c33f35d1d59ba (patch)
tree49daaffbd9bea08c06b9a84d299f7f0687f58df1 /src/gallium/auxiliary
parent562448b75a7ab9035954d539dc3002a02e6263f8 (diff)
gallium/u_tests: fix MSVC build by using old-style zero initializers
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/util/u_tests.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/util/u_tests.c b/src/gallium/auxiliary/util/u_tests.c
index cb930ee0d03..7c4e98402be 100644
--- a/src/gallium/auxiliary/util/u_tests.c
+++ b/src/gallium/auxiliary/util/u_tests.c
@@ -823,7 +823,7 @@ test_compute_clear_image(struct pipe_context *ctx)
return;
}
- struct pipe_compute_state state = {};
+ struct pipe_compute_state state = {0};
state.ir_type = PIPE_SHADER_IR_TGSI;
state.prog = tokens;
@@ -831,7 +831,7 @@ test_compute_clear_image(struct pipe_context *ctx)
cso_set_compute_shader_handle(cso, compute_shader);
/* Bind the image. */
- struct pipe_image_view image = {};
+ struct pipe_image_view image = {0};
image.resource = cb;
image.shader_access = image.access = PIPE_IMAGE_ACCESS_READ_WRITE;
image.format = cb->format;
@@ -839,7 +839,7 @@ test_compute_clear_image(struct pipe_context *ctx)
ctx->set_shader_images(ctx, PIPE_SHADER_COMPUTE, 0, 1, &image);
/* Dispatch compute. */
- struct pipe_grid_info info = {};
+ struct pipe_grid_info info = {0};
info.block[0] = 8;
info.block[1] = 8;
info.block[2] = 1;