[Mesa-dev] i965/miptree: Rework import offsets

Topi Pohjolainen topi.pohjolainen at gmail.com
Wed Jul 26 19:28:32 UTC 2017


Offsets to tiled images consist of two parts: tile offset and
intra-tile x,y coordinates giving the start position within
the tile.

Until now these have been split into different parts of
miptree: intel_mipmap_tree::offset giving the tile offset and
intel_mipmap_tree::level[0].level_x/y giving the intra tile
coordinates. Moreover, logic in various places had been split
in similar fashion.

This patch set brings the two parts closer each other.

CC: Jason Ekstrand <jason at jlekstrand.net>

Topi Pohjolainen (6):
  i965/miptree: Take import tile offset along with intra-tile x,y
  intel/isl: Introduce tiled image offset
  i965/miptree: Use isl_image_offset in get_tile_offsets()
  i965/miptree: Use isl instead of local offset calculator
  i965/blit: Let _intratile_offset_el() resolve image offset
  i965/miptree: Use isl_image_offset

 src/intel/blorp/blorp_blit.c                     |  19 +--
 src/intel/isl/isl.c                              |  44 ++++---
 src/intel/isl/isl.h                              |  29 +++--
 src/mesa/drivers/dri/i965/brw_blorp.c            |   2 +-
 src/mesa/drivers/dri/i965/brw_context.c          |   1 -
 src/mesa/drivers/dri/i965/brw_misc_state.c       |  20 +++-
 src/mesa/drivers/dri/i965/brw_wm_surface_state.c |  58 ++++-----
 src/mesa/drivers/dri/i965/intel_blit.c           | 145 +++++++++++++++--------
 src/mesa/drivers/dri/i965/intel_fbo.h            |  14 +--
 src/mesa/drivers/dri/i965/intel_mipmap_tree.c    | 106 +++++++----------
 src/mesa/drivers/dri/i965/intel_mipmap_tree.h    |  29 +----
 src/mesa/drivers/dri/i965/intel_pixel_draw.c     |   3 +-
 src/mesa/drivers/dri/i965/intel_pixel_read.c     |   2 +-
 src/mesa/drivers/dri/i965/intel_screen.c         |   9 +-
 src/mesa/drivers/dri/i965/intel_tex.c            |   3 +-
 src/mesa/drivers/dri/i965/intel_tex_image.c      |   2 +-
 16 files changed, 254 insertions(+), 232 deletions(-)

-- 
2.11.0



More information about the mesa-dev mailing list