diff options
author | Rob Clark <[email protected]> | 2016-10-07 11:58:16 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2016-10-07 15:50:46 -0400 |
commit | 495ba8884ad5047abc7e408b68165c0465a81ac0 (patch) | |
tree | 0d9328470726c425d5697553b395d06fc4deb085 /src/gallium/drivers/radeon/r600_texture.c | |
parent | 3ebfc44b4231cfa131e17076b10140fcd70ccd8c (diff) |
gallium: add missing zero-init for resource templates
Mostly test code, plus one spot I noticed in r600.
Signed-off-by: Rob Clark <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/r600_texture.c')
-rw-r--r-- | src/gallium/drivers/radeon/r600_texture.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c index 6ad5f85ee0c..57cdbcf615d 100644 --- a/src/gallium/drivers/radeon/r600_texture.c +++ b/src/gallium/drivers/radeon/r600_texture.c @@ -1361,6 +1361,7 @@ bool r600_init_flushed_depth_texture(struct pipe_context *ctx, } } + memset(&resource, 0, sizeof(resource)); resource.target = texture->target; resource.format = pipe_format; resource.width0 = texture->width0; |