浏览代码

r600g: fix s3tc-texsubimage

we need to translate the destination box as well.

fixes piglit's s3tc-texsubimage test.

Signed-off-by: Dave Airlie <airlied@redhat.com>
tags/android-x86-2.2-r2
Dave Airlie 14 年前
父节点
当前提交
0863eaf91c
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      src/gallium/drivers/r600/r600_blit.c

+ 3
- 0
src/gallium/drivers/r600/r600_blit.c 查看文件

@@ -285,6 +285,9 @@ static void r600_resource_copy_region(struct pipe_context *ctx,
if (util_format_is_s3tc(dst->format)) {
r600_s3tc_to_blittable(dst, dst_level, &orig_info[1]);
restore_orig[1] = TRUE;
/* translate the dst box as well */
dstx = util_format_get_nblocksx(orig_info[1].format, dstx);
dsty = util_format_get_nblocksx(orig_info[1].format, dsty);
}

r600_hw_copy_region(ctx, dst, dst_level, dstx, dsty, dstz,

正在加载...
取消
保存