summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-12-25 09:37:06 +0100
committerMarek Olšák <[email protected]>2011-12-25 10:18:48 +0100
commit2175634e73f9c5ccaf565f0dc15520610b1eb7ff (patch)
tree67035a0d7f2fe33fb995d55c8b5f4d93de9980ce /src/gallium/drivers
parent1b9577b833db28651e89e5c12559c7af5dde8822 (diff)
r600g: fix a warning that a variable may be uninitialized
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/r600/r600_blit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_blit.c b/src/gallium/drivers/r600/r600_blit.c
index 313ed128f06..9ad247a3a0a 100644
--- a/src/gallium/drivers/r600/r600_blit.c
+++ b/src/gallium/drivers/r600/r600_blit.c
@@ -316,6 +316,8 @@ static void r600_resource_copy_region(struct pipe_context *ctx,
const struct pipe_box *psbox;
boolean restore_orig[2];
+ memset(orig_info, 0, sizeof(orig_info));
+
/* Fallback for buffers. */
if (dst->target == PIPE_BUFFER && src->target == PIPE_BUFFER) {
util_resource_copy_region(ctx, dst, dst_level, dstx, dsty, dstz,