auxiliary: support using PIPE_TEXTURE_RECT internally
authorLuca Barbieri <luca@luca-barbieri.com>
Fri, 6 Aug 2010 05:39:21 +0000 (07:39 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Fri, 20 Aug 2010 10:04:05 +0000 (12:04 +0200)
commitd4ec85e62423336d3cddc45f26bef6764f435a18
tree9ecc0abed6c653487b0417ef4026513819b08db5
parent3070e0ea41ab4aa24804e8fd26895924a8583830
auxiliary: support using PIPE_TEXTURE_RECT internally

Currently Gallium internals always use PIPE_TEXTURE_2D and normalized
coordinates to access textures.

However, PIPE_TEXTURE_2D is not always supported for NPOT textures,
and PIPE_TEXTURE_RECT requires unnormalized coordinates.

Hence, this change adds support for both kinds of normalization.
src/gallium/auxiliary/util/u_blit.c
src/gallium/auxiliary/util/u_blitter.c