<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">On Wed, May 30, 2018, 4:14 AM Juan A. Suarez Romero <<a href="mailto:jasuarez@igalia.com">jasuarez@igalia.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, 2018-05-28 at 21:10 -0400, Marek Olšák wrote:<br>
> From: Marek Olšák <<a href="mailto:marek.olsak@amd.com" target="_blank" rel="noreferrer">marek.olsak@amd.com</a>><br>
> <br>
> Bindless texture handles can be passed via vertex attribs using this type.<br>
> This fixes a bunch of bindless piglit tests on radeonsi.<br>
> <br>
> Cc: 18.0 18.1 <<a href="mailto:mesa-stable@lists.freedesktop.org" target="_blank" rel="noreferrer">mesa-stable@lists.freedesktop.org</a>><br>
<br>
Hello.<br>
<br>
This patch didn't apply cleanly on 18.0, so I just fixed a small conflict.<br>
<br>
In case you are interested in, this is the fixed commit:<br>
<br>
<a href="https://github.com/Igalia/release-mesa/commit/81bd117b3cfbdd73181e44fbedb5e42c4c" rel="noreferrer noreferrer" target="_blank">https://github.com/Igalia/release-mesa/commit/81bd117b3cfbdd73181e44fbedb5e42c4c</a><br>
492406<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Looks good. Thanks!</div><div dir="auto"><br></div><div dir="auto">Marek</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><br>
<br>
J.A.<br>
<br>
> ---<br>
> src/mesa/main/glformats.c | 2 ++<br>
> src/mesa/vbo/vbo_private.h | 2 +-<br>
> 2 files changed, 3 insertions(+), 1 deletion(-)<br>
> <br>
> diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c<br>
> index cba5e670db0..667020c193c 100644<br>
> --- a/src/mesa/main/glformats.c<br>
> +++ b/src/mesa/main/glformats.c<br>
> @@ -556,20 +556,22 @@ _mesa_bytes_per_vertex_attrib(GLint comps, GLenum type)<br>
> case GL_UNSIGNED_INT_2_10_10_10_REV:<br>
> if (comps == 4)<br>
> return sizeof(GLuint);<br>
> else<br>
> return -1;<br>
> case GL_UNSIGNED_INT_10F_11F_11F_REV:<br>
> if (comps == 3)<br>
> return sizeof(GLuint);<br>
> else<br>
> return -1;<br>
> + case GL_UNSIGNED_INT64_ARB:<br>
> + return comps * 8;<br>
> default:<br>
> return -1;<br>
> }<br>
> }<br>
> <br>
> /**<br>
> * Test if the given format is unsized.<br>
> */<br>
> GLboolean<br>
> _mesa_is_enum_format_unsized(GLenum format)<br>
> diff --git a/src/mesa/vbo/vbo_private.h b/src/mesa/vbo/vbo_private.h<br>
> index b69f836aa0b..3f7d0dc6082 100644<br>
> --- a/src/mesa/vbo/vbo_private.h<br>
> +++ b/src/mesa/vbo/vbo_private.h<br>
> @@ -97,22 +97,22 @@ vbo_attrtype_to_integer_flag(GLenum format)<br>
> }<br>
> }<br>
> <br>
> static inline GLboolean<br>
> vbo_attrtype_to_double_flag(GLenum format)<br>
> {<br>
> switch (format) {<br>
> case GL_FLOAT:<br>
> case GL_INT:<br>
> case GL_UNSIGNED_INT:<br>
> - case GL_UNSIGNED_INT64_ARB:<br>
> return GL_FALSE;<br>
> + case GL_UNSIGNED_INT64_ARB:<br>
> case GL_DOUBLE:<br>
> return GL_TRUE;<br>
> default:<br>
> unreachable("Bad vertex attribute type");<br>
> return GL_FALSE;<br>
> }<br>
> }<br>
> <br>
> <br>
> /**<br>
</blockquote></div></div></div>