summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_resource.c
diff options
context:
space:
mode:
authorKristian H. Kristensen <[email protected]>2018-08-15 09:18:39 -0700
committerRob Clark <[email protected]>2018-08-16 19:11:08 -0400
commite89683d5a2b11ca416cfb346c2b517405d37da62 (patch)
tree1e3d81a47d48d850d11b6ae9bed2905311365685 /src/gallium/drivers/freedreno/freedreno_resource.c
parentc782168751ec6373c28ebb4b4c39a8f3ae06a075 (diff)
freedreno: Fix warnings
Signed-off-by: Kristian H. Kristensen <[email protected]> Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_resource.c')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_resource.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_resource.c b/src/gallium/drivers/freedreno/freedreno_resource.c
index 3fbf50003e9..f882cf5a8b0 100644
--- a/src/gallium/drivers/freedreno/freedreno_resource.c
+++ b/src/gallium/drivers/freedreno/freedreno_resource.c
@@ -211,7 +211,7 @@ fd_try_shadow_resource(struct fd_context *ctx, struct fd_resource *rsc,
mtx_unlock(&ctx->screen->lock);
- struct pipe_blit_info blit = {0};
+ struct pipe_blit_info blit = {};
blit.dst.resource = prsc;
blit.dst.format = prsc->format;
blit.src.resource = pshadow;
@@ -305,7 +305,7 @@ static void
fd_blit_from_staging(struct fd_context *ctx, struct fd_transfer *trans)
{
struct pipe_resource *dst = trans->base.resource;
- struct pipe_blit_info blit = {0};
+ struct pipe_blit_info blit = {};
blit.dst.resource = dst;
blit.dst.format = dst->format;
@@ -325,7 +325,7 @@ static void
fd_blit_to_staging(struct fd_context *ctx, struct fd_transfer *trans)
{
struct pipe_resource *src = trans->base.resource;
- struct pipe_blit_info blit = {0};
+ struct pipe_blit_info blit = {};
blit.src.resource = src;
blit.src.format = src->format;
@@ -372,7 +372,7 @@ flush_resource(struct fd_context *ctx, struct fd_resource *rsc, unsigned usage)
fd_batch_reference(&write_batch, rsc->write_batch);
if (usage & PIPE_TRANSFER_WRITE) {
- struct fd_batch *batch, *batches[32] = {0};
+ struct fd_batch *batch, *batches[32] = {};
uint32_t batch_mask;
/* This is a bit awkward, probably a fd_batch_flush_locked()