浏览代码

gallium: fix the compressed texture hack in st_texture_image_copy()

Actually, the hack is still there and needs to be revisited, but I get a bit
further with compressed textures now.
tags/mesa_20090313
Brian Paul 17 年前
父节点
当前提交
3faea292e5
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2
    3
      src/mesa/state_tracker/st_texture.c

+ 2
- 3
src/mesa/state_tracker/st_texture.c 查看文件

@@ -290,8 +290,7 @@ st_texture_image_copy(struct pipe_context *pipe,
GLuint i;

/* XXX this is a hack */
if (dst->compressed)
height /= 4;
const GLuint copyHeight = dst->compressed ? height / 4 : height;

for (i = 0; i < depth; i++) {
GLuint srcLevel;
@@ -315,7 +314,7 @@ st_texture_image_copy(struct pipe_context *pipe,
0, 0, /* destX, Y */
src_surface,
0, 0, /* srcX, Y */
width, height);
width, copyHeight);

pipe_surface_reference(&dst_surface, NULL);
pipe_surface_reference(&src_surface, NULL);

正在加载...
取消
保存