瀏覽代碼

freedreno: a2xx: fix mipmapping for NPOT textures

Fixes: 3a273a4a

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
tags/19.1-branchpoint
Jonathan Marek 6 年之前
父節點
當前提交
6c0fefb448
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6
    0
      src/gallium/drivers/freedreno/a2xx/fd2_resource.c

+ 6
- 0
src/gallium/drivers/freedreno/a2xx/fd2_resource.c 查看文件

@@ -55,6 +55,12 @@ fd2_setup_slices(struct fd_resource *rsc)
break;
}

/* mipmaps have power of two sizes in memory */
if (level) {
width = util_next_power_of_two(width);
height = util_next_power_of_two(height);
}

slice->pitch = width;
slice->offset = size;


Loading…
取消
儲存