aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorDrew Davenport <[email protected]>2020-01-27 11:13:19 -0700
committerMarge Bot <[email protected]>2020-01-28 16:29:48 +0000
commit0d99ff54cc3fb1dd85044f8971f6686138a5f149 (patch)
tree59a985cbef7e193f417eb91c698f67b45a184176 /src/gallium/drivers
parent815a603889b812edc94bed61a260c76c264a8b9d (diff)
radeonsi: Clear uninitialized variable
|view| was not initialized leading to flaky test failures in SkQP test unitTest_ES2BlendWithNoTexture. Fixes: 029bfa3d253 "radeonsi: add ability to bind images as image buffers" Reviewed-by: Bas Nieuwenhuizen <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3592> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3592>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/radeonsi/si_descriptors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c b/src/gallium/drivers/radeonsi/si_descriptors.c
index 193029820e5..fa2174bac5d 100644
--- a/src/gallium/drivers/radeonsi/si_descriptors.c
+++ b/src/gallium/drivers/radeonsi/si_descriptors.c
@@ -903,7 +903,7 @@ void si_update_ps_colorbuf0_slot(struct si_context *sctx)
if (surf) {
struct si_texture *tex = (struct si_texture*)surf->texture;
- struct pipe_image_view view;
+ struct pipe_image_view view = {0};
assert(tex);
assert(!tex->is_depth);