[Mesa-dev] [PATCH 0/3] Make Gallium aware of GL_TEXTURE_RECTANGLE (v2)

Luca Barbieri luca at luca-barbieri.com
Wed Aug 11 21:37:52 PDT 2010


Changes:
- Add a much longer and better comment for the flag
- u_blit no longer sets the unnormalized hint flag for NPOT textures:
  the driver should do that if it wants to

This is a revised version of this patchset.

The change is that the driver is now expected to set or clear the
flag if it prefers one normalization, and thus the u_blit code no
longer does that in the NPOT case.

This way, this patchset is now totally independent of POT vs NPOT,
except for the fact that OpenGL happens to have an extension that
both supports NPOT and wants unnormalized coordinates.

Luca Barbieri (3):
  gallium: add PIPE_RESOURCE_FLAG_UNNORMALIZED_COORDS_HINT (v2)
  gallium: use unnormalized coords internally for NPOT textures (v2)
  st/mesa: set PIPE_RESOURCE_FLAG_UNNORMALIZED_COORDS_HINT for
    GL_TEXTURE_RECTANGLE

 src/gallium/auxiliary/util/u_blit.c            |   36 +++++++++++++----
 src/gallium/auxiliary/util/u_blitter.c         |   48 +++++++++++++++--------
 src/gallium/include/pipe/p_defines.h           |   26 +++++++++++++
 src/mesa/state_tracker/st_atom_pixeltransfer.c |    2 +-
 src/mesa/state_tracker/st_cb_bitmap.c          |    4 +-
 src/mesa/state_tracker/st_cb_drawpixels.c      |    2 +-
 src/mesa/state_tracker/st_cb_texture.c         |   18 +++++++-
 src/mesa/state_tracker/st_gen_mipmap.c         |    8 +++-
 src/mesa/state_tracker/st_texture.c            |    5 +-
 src/mesa/state_tracker/st_texture.h            |    3 +-
 10 files changed, 114 insertions(+), 38 deletions(-)



More information about the mesa-dev mailing list