<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 Thu, May 5, 2016 at 5:38 PM, Jordan Justen <span dir="ltr"><<a href="mailto:jordan.l.justen@intel.com" target="_blank">jordan.l.justen@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2655265fcba9017e793026c76e490e04db088c8f, but for compute.<br>
<br>
Signed-off-by: Jordan Justen <<a href="mailto:jordan.l.justen@intel.com">jordan.l.justen@intel.com</a>><br>
Cc: Kenneth Graunke <<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>><br>
---<br>
<br>
I don't know if there is a test that this fixes, but it seems like we<br>
should handle it the same as the draw case.<br>
<br>
Note that the draw indirect param is a pointer, whereas it is a<br>
GLintptr for dispatch indirect.<br>
<br>
src/mesa/main/api_validate.c | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/src/mesa/main/api_validate.c b/src/mesa/main/api_validate.c<br>
index 6ec65e5..9d29f8d 100644<br>
--- a/src/mesa/main/api_validate.c<br>
+++ b/src/mesa/main/api_validate.c<br>
@@ -1107,7 +1107,7 @@ valid_dispatch_indirect(struct gl_context *ctx,<br>
GLintptr indirect,<br>
GLsizei size, const char *name)<br>
{<br>
- GLintptr end = indirect + size;<br>
+ const uint64_t end = (uint64_t) indirect + size;<br>
<br>
if (!check_valid_to_compute(ctx, name))<br>
return GL_FALSE;<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.8.1<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>