<div dir="ltr">Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 26, 2018 at 1:30 AM, Tapani Pälli <span dir="ltr"><<a href="mailto:tapani.palli@intel.com" target="_blank">tapani.palli@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This change cleans following scary warnings in valgrind output<br>
when disk cache is being written:<br>
<br>
==6532== Uninitialised byte(s) found during client check request<br>
==6532== at 0x14423FAD: blob_write_bytes (blob.c:152)<br>
==6532== by 0x144240FB: blob_write_uint32 (blob.c:194)<br>
==6532== by 0x144001A5: write_tex (nir_serialize.c:613)<br>
<br>
and later (loads of):<br>
<br>
==6532== Use of uninitialised value of size 8<br>
==6532== at 0x62FCD9E: crc32_z (in /usr/lib64/libz.so.1.2.11)<br>
==6532== by 0x13F65014: util_hash_crc32 (crc32.c:127)<br>
==6532== by 0x13F5DABA: cache_put (disk_cache.c:947)<br>
<br>
Signed-off-by: Tapani Pälli <<a href="mailto:tapani.palli@intel.com">tapani.palli@intel.com</a>><br>
---<br>
src/compiler/nir/nir_<wbr>serialize.c | 1 +<br>
1 file changed, 1 insertion(+)<br>
<br>
diff --git a/src/compiler/nir/nir_<wbr>serialize.c b/src/compiler/nir/nir_<wbr>serialize.c<br>
index 54a00c81d6..9fe46a675f 100644<br>
--- a/src/compiler/nir/nir_<wbr>serialize.c<br>
+++ b/src/compiler/nir/nir_<wbr>serialize.c<br>
@@ -585,6 +585,7 @@ union packed_tex_data {<br>
unsigned component:2;<br>
unsigned has_texture_deref:1;<br>
unsigned has_sampler_deref:1;<br>
+ unsigned unused:10; /* Mark unused for valgrind. */<br>
} u;<br>
};<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
2.14.3<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>