[Mesa-dev] [PATCH V3 28/30] i965: Account for view parameters in blit CTSI path
Chris Forbes
chrisf at ijw.co.nz
Wed Apr 2 01:05:24 PDT 2014
Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
---
src/mesa/drivers/dri/i965/intel_tex_copy.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/intel_tex_copy.c b/src/mesa/drivers/dri/i965/intel_tex_copy.c
index ca0b5b9..c2b6c35 100644
--- a/src/mesa/drivers/dri/i965/intel_tex_copy.c
+++ b/src/mesa/drivers/dri/i965/intel_tex_copy.c
@@ -74,12 +74,17 @@ intel_copy_texsubimage(struct brw_context *brw,
return false;
}
+ /* account for view parameters and face index */
+ int dst_level = intelImage->base.Base.Level +
+ intelImage->base.Base.TexObject->MinLevel;
+ int dst_slice = slice + intelImage->base.Base.Face +
+ intelImage->base.Base.TexObject->MinLayer;
+
/* blit from src buffer to texture */
if (!intel_miptree_blit(brw,
irb->mt, irb->mt_level, irb->mt_layer,
x, y, irb->Base.Base.Name == 0,
- intelImage->mt, intelImage->base.Base.Level,
- intelImage->base.Base.Face + slice,
+ intelImage->mt, dst_level, dst_slice,
dstx, dsty, false,
width, height, GL_COPY)) {
return false;
--
1.9.1
More information about the mesa-dev
mailing list