On Thu, Mar 17, 2016 at 12:47 PM, Nicolai Hähnle <nhaeh...@gmail.com> wrote:
> On 16.03.2016 19:43, Brian Paul wrote:
>>
>> The return type is float, which is what was implicitly used before,
>> AFAICT.
>
>
> Isn't this technically incorrect when the uploaded texture is integer?
>
> To be honest, it's not really clear to me what the return type is supposed
> to mean. I don't think any of the hardware drivers uses it.

Adreno has different texture instructions depending on the desired
return type. If you use a float return type on an int texture, you
will get a floating point value of that integer (i.e. if the actual
textured value were 100, you'd get 100.0f returned if you did
sam.f32).

  -ilia
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to