[Mesa-dev] [RFC] [PATCH 0/2] Allow mesa/st to inform driver of GL_TEXTURE_RECTANGLE

Luca Barbieri luca.barbieri at gmail.com
Thu Apr 15 13:13:33 PDT 2010


How about moving normalized_coords from the sampler state to the sampler view?

As far as I can tell:
ARB_sampler_objects doesn't seem to include the texture target or a
normalization in the sampler object.
DirectX 10 does not support unnormalized coordinates at all.
Not sure about pre-DX10, but they don't have sampler objects anyway.

Any reason for having it in the sampler state?

Note however that this is a separate issue from the problem of knowing
that at texture creation.


Alternatively you could even move it to pipe_texture (ideally by
introducing PIPE_TEXTURE_RECT and not as a bit, so it can't be used
with 3D and cubemaps) as Marek proposes, which would indeed solve both
issues at once.

The issue however is that all generic Gallium algorithms would now
need to adapt to that and use either kind of coordinates depending on
the texture target, which would be ugly (even though possibly a good
thing for old hardware).


More information about the mesa-dev mailing list