<div dir="ltr"><div>Is this because of the 64 bit handles? If so, I think I agree with you. According to the ARB_bindless_texture spec changes:<br>"When
 used as shader inputs, outputs, uniform block members, or temporaries, 
the value of the sampler is a 64-bit unsigned integer handle and never 
refers to a texture image unit."<br><br></div>However, should we consume 2 locs only if ARB_bindless_texture is present, or always?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 22, 2014 at 8:36 AM, 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">In the future for ARB_bindless_texture we might want this to be 2, I'm<br>
not sure if we should just do that now.<br>
<span class="HOEnZb"><font color="#888888"><br>
Dave.<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On 22 August 2014 09:25, Micael Dias <<a href="mailto:kam1kaz3@gmail.com">kam1kaz3@gmail.com</a>> wrote:<br>
> ---<br>
> If samplers occupy zero locations we can run into a lot of issues. See #82921.<br>
> I briefly tested this with my own code (which was previously crashing and<br>
> misbehaving) and also ran other apps and everything seems to work fine.<br>
> I'm not used to contributing code in this fashion, so please forgive me if I'm<br>
> making some mistake. Thanks.<br>
><br>
>  src/glsl/glsl_types.cpp | 2 ++<br>
>  1 file changed, 2 insertions(+)<br>
><br>
> diff --git a/src/glsl/glsl_types.cpp b/src/glsl/glsl_types.cpp<br>
> index 66e9b13..cc05193 100644<br>
> --- a/src/glsl/glsl_types.cpp<br>
> +++ b/src/glsl/glsl_types.cpp<br>
> @@ -691,6 +691,8 @@ glsl_type::uniform_locations() const<br>
>        return size;<br>
>     case GLSL_TYPE_ARRAY:<br>
>        return this->length * this->fields.array->uniform_locations();<br>
> +   case GLSL_TYPE_SAMPLER:<br>
> +      return 1;<br>
>     default:<br>
>        break;<br>
>     }<br>
> --<br>
> 2.1.0<br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> mesa-dev mailing list<br>
> <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Micael Dias
</div>