浏览代码

r600g: add texture tiling enable under a debug option.

At the moment you need kernel patches to have texture tiling work
with the kernel CS checker, so once they are upstream and the drm version
is bumped we can make this enable flip the other way most likely.
tags/snb-magic
Dave Airlie 15 年前
父节点
当前提交
089aa0ba24
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7
    0
      src/gallium/drivers/r600/r600_texture.c

+ 7
- 0
src/gallium/drivers/r600/r600_texture.c 查看文件

@@ -307,6 +307,13 @@ struct pipe_resource *r600_texture_create(struct pipe_screen *screen,
{
unsigned array_mode = 0;

if (debug_get_bool_option("R600_FORCE_TILING", FALSE)) {
if (!(templ->flags & R600_RESOURCE_FLAG_TRANSFER) &&
!(templ->bind & PIPE_BIND_SCANOUT)) {
array_mode = V_038000_ARRAY_2D_TILED_THIN1;
}
}

return (struct pipe_resource *)r600_texture_create_object(screen, templ, array_mode,
0, 0, NULL);


正在加载...
取消
保存