diff options
author | Anuj Phogat <[email protected]> | 2015-08-11 16:26:39 -0700 |
---|---|---|
committer | Anuj Phogat <[email protected]> | 2015-09-28 12:43:43 -0700 |
commit | 485285498f39aa9590d430dee6d52c796531b8c0 (patch) | |
tree | b54f73ba0663fa52b7ba6549261287c107bccd28 /src/mesa/drivers/dri/i965/intel_blit.c | |
parent | bbbc9fd8e5e2a4434c8630eacd7943d59aa73c47 (diff) |
i965: Delete temporary variable 'src_pitch'
Signed-off-by: Anuj Phogat <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_blit.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_blit.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_blit.c b/src/mesa/drivers/dri/i965/intel_blit.c index 3a2a1818bc7..8ddb313a491 100644 --- a/src/mesa/drivers/dri/i965/intel_blit.c +++ b/src/mesa/drivers/dri/i965/intel_blit.c @@ -327,10 +327,6 @@ intel_miptree_blit(struct brw_context *brw, if (dst_flip) dst_y = minify(dst_mt->physical_height0, dst_level - dst_mt->first_level) - dst_y - height; - int src_pitch = src_mt->pitch; - if (src_flip != dst_flip) - src_pitch = -src_pitch; - uint32_t src_image_x, src_image_y, dst_image_x, dst_image_y; intel_miptree_get_image_offset(src_mt, src_level, src_slice, &src_image_x, &src_image_y); @@ -353,7 +349,7 @@ intel_miptree_blit(struct brw_context *brw, if (!intelEmitCopyBlit(brw, src_mt->cpp, - src_pitch, + src_flip == dst_flip ? src_mt->pitch : -src_mt->pitch, src_mt->bo, src_mt->offset, src_mt->tiling, src_mt->tr_mode, |