summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorLionel Landwerlin <[email protected]>2019-02-25 10:48:52 +0000
committerLionel Landwerlin <[email protected]>2019-02-25 13:11:13 +0000
commit91df8b1780faf39eaf39cc279a2459ee1fa3a8e3 (patch)
tree0216eb41471e2e09259c1e301dc9ae9d0c9d4af2 /src/intel
parentf1da10e0c54e881c6910cf7399b4d0258375f2ae (diff)
intel/aub_viewer: silence compiler warning
buffer_addr may be used uninitialized. Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/tools/aubinator_viewer_decoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/tools/aubinator_viewer_decoder.cpp b/src/intel/tools/aubinator_viewer_decoder.cpp
index 4190674fc58..e804fa798c4 100644
--- a/src/intel/tools/aubinator_viewer_decoder.cpp
+++ b/src/intel/tools/aubinator_viewer_decoder.cpp
@@ -364,7 +364,7 @@ handle_3dstate_vertex_buffers(struct aub_viewer_decode_ctx *ctx,
if (iter.struct_desc != vbs)
continue;
- uint64_t buffer_addr;
+ uint64_t buffer_addr = 0;
struct gen_field_iterator vbs_iter;
gen_field_iterator_init(&vbs_iter, vbs, &iter.p[iter.start_bit / 32], 0, false);