<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 16, 2016 at 6:23 PM, Dave Airlie <span dir="ltr"><<a href="mailto:airlied@gmail.com" target="_blank">airlied@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Dave Airlie <<a href="mailto:airlied@redhat.com">airlied@redhat.com</a>><br>
<br>
We don't use width outside the debug clause here.<br></blockquote><div><br></div><div>Thanks<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
---<br>
src/vulkan/gen_pack_header.py | 3 +--<br>
1 file changed, 1 insertion(+), 2 deletions(-)<br>
<br>
diff --git a/src/vulkan/gen_pack_header.py b/src/vulkan/gen_pack_header.py<br>
index 3cabb58..75c4f26 100755<br>
--- a/src/vulkan/gen_pack_header.py<br>
+++ b/src/vulkan/gen_pack_header.py<br>
@@ -62,11 +62,10 @@ __gen_mbo(uint32_t start, uint32_t end)<br>
static inline uint64_t<br>
__gen_uint(uint64_t v, uint32_t start, uint32_t end)<br>
{<br>
- const int width = end - start + 1;<br>
-<br>
__gen_validate_value(v);<br>
<br>
#if DEBUG<br>
+ const int width = end - start + 1;<br>
if (width < 64) {<br>
const uint64_t max = (1ull << width) - 1;<br>
assert(v <= max);<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.5.0<br>
<br>
_______________________________________________<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/mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div></div>