[Mesa-dev] [RFC] [PATCH 0/3] Make Gallium aware of GL_TEXTURE_RECTANGLE

Keith Whitwell keithw at vmware.com
Wed Aug 11 11:04:40 PDT 2010

On Wed, 2010-08-11 at 10:44 -0700, Marek Olšák wrote:
> I agree that if a texture was created as GL_TEXTURE_RECTANGLE, meaning
> that all shaders use the TGSI_TEXTURE_RECT sampler type, it makes
> sense to use unnormalized coordinates. However if a texture is NPOT as
> in OpenGL, meaning that all shaders use the TGSI_TEXTURE_2D sampler
> type, we shouldn't force unnormalized texture coordinates everywhere
> and trade effectivity and simplicity of one driver (nvfx/nv30) at the
> expense of another (r300). Also I don't like changing
> pipe_resource::flags after a texture is created.
> Some time ago I think Brian suggested to add PIPE_TEXTURE_RECT as
> another texture type and make it match the meaning of
> GL_TEXTURE_RECTANGLE. We would do this change but we had no time back
> then. This seems to be the solution that would work best for
> everybody.

This seems reasonable to me too.


More information about the mesa-dev mailing list