mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
i965: Account for view parameters in blit CTSI path
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Acked-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
01d6a2ad16
commit
ea477817d7
1 changed files with 7 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue