mesa/st: 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:03 +0000 (12:04 +0200)
commit3070e0ea41ab4aa24804e8fd26895924a8583830
treec9f0edec8e9a61a642f4d5068ea7a9047eb11ec5
parent4a9bfb24eb907080b2e3e49215ad9912758d56c6
mesa/st: 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/mesa/state_tracker/st_cb_bitmap.c
src/mesa/state_tracker/st_cb_drawpixels.c
src/mesa/state_tracker/st_cb_fbo.c
src/mesa/state_tracker/st_context.c
src/mesa/state_tracker/st_context.h