diff options
author | Eric Anholt <[email protected]> | 2014-02-14 13:00:40 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-02-18 10:01:45 -0800 |
commit | f128bcc7c293013f4b44e4b661638333de0077c2 (patch) | |
tree | 5491b8d902b8a06bf64f2056ee135b4909206849 /src/mesa/drivers/dri/i965/intel_blit.c | |
parent | 4e0924c5de5f3964e4ca81f923d877dbb59fad0a (diff) |
i965: Drop mt->levels[].width/height.
It often confused people because it was unclear on whether it was the
physical or logical, and people needed the other one as well. We can
recompute it trivially using the minify() macro, clarifying which value is
being used and making getting the other value obvious.
v2: Fix a pasteo in intel_blit.c's dst flip.
Reviewed-by: Chris Forbes <[email protected]> (v1)
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_blit.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_blit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_blit.c b/src/mesa/drivers/dri/i965/intel_blit.c index b12ecca366d..df85dc9759e 100644 --- a/src/mesa/drivers/dri/i965/intel_blit.c +++ b/src/mesa/drivers/dri/i965/intel_blit.c @@ -215,10 +215,10 @@ intel_miptree_blit(struct brw_context *brw, intel_miptree_resolve_color(brw, dst_mt); if (src_flip) - src_y = src_mt->level[src_level].height - src_y - height; + src_y = minify(src_mt->physical_height0, src_level) - src_y - height; if (dst_flip) - dst_y = dst_mt->level[dst_level].height - dst_y - height; + dst_y = minify(dst_mt->physical_height0, dst_level) - dst_y - height; int src_pitch = src_mt->region->pitch; if (src_flip != dst_flip) |