[Mesa-dev] gallium & texture rectangles

Luca Barbieri luca at luca-barbieri.com
Wed Aug 18 10:27:35 PDT 2010


I pushed a first version on the gallium-rect-textures branch (not
tested beyond compilation).

As a consequence of the decisions made in this thread, the interface
is exactly identical to OpenGL, and internal drawing code works
exactly as an OpenGL application not requiring
ARB_texture_non_power_of_two would do it (no opinion implied on
whether this is good or not).

diffstat is:
 gallium/auxiliary/gallivm/lp_bld_sample_soa.c |    7 +-
 gallium/auxiliary/util/u_blit.c               |   70 +++++++++++++++++++-------
 gallium/auxiliary/util/u_blitter.c            |   51 ++++++++++++------
 gallium/auxiliary/util/u_gen_mipmap.c         |    1
 gallium/auxiliary/util/u_surfaces.h           |    4 -
 gallium/docs/source/index.rst                 |    1
 gallium/docs/source/resources.rst             |   37 +++++++++++++
 gallium/drivers/i915/i915_resource_texture.c  |    5 +
 gallium/drivers/i965/brw_resource_texture.c   |    4 +
 gallium/drivers/llvmpipe/lp_screen.c          |    1
 gallium/drivers/llvmpipe/lp_texture.c         |    1
 gallium/drivers/nv50/nv50_miptree.c           |    3 -
 gallium/drivers/nv50/nv50_tex.c               |    1
 gallium/drivers/nvfx/nv30_fragtex.c           |    1
 gallium/drivers/nvfx/nv40_fragtex.c           |    1
 gallium/drivers/nvfx/nvfx_miptree.c           |    3 -
 gallium/drivers/r300/r300_hyperz.c            |    3 -
 gallium/drivers/r300/r300_texture.c           |    6 +-
 gallium/drivers/r300/r300_texture_desc.c      |    6 +-
 gallium/drivers/r600/r600_state.c             |    1
 gallium/drivers/r600/r600_texture.c           |    3 -
 gallium/drivers/softpipe/sp_screen.c          |    1
 gallium/drivers/softpipe/sp_tex_sample.c      |    2
 gallium/drivers/svga/svga_resource_texture.c  |    3 -
 gallium/drivers/svga/svga_tgsi_emit.h         |    1
 gallium/include/pipe/p_defines.h              |    4 +
 gallium/tests/python/tests/texture_blit.py    |    2
 mesa/state_tracker/st_cb_bitmap.c             |   25 +++++----
 mesa/state_tracker/st_cb_drawpixels.c         |   42 +++------------
 mesa/state_tracker/st_cb_texture.c            |    4 +
 mesa/state_tracker/st_context.c               |    5 +
 mesa/state_tracker/st_context.h               |    3 -
 mesa/state_tracker/st_texture.c               |    2
 33 files changed, 207 insertions(+), 97 deletions(-)


More information about the mesa-dev mailing list