Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
e1344412
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
e1344412
编写于
10月 10, 2012
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nv30-nv40/fb: call zcomp setup hook from tiling setup
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
dac1558d
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
16 addition
and
20 deletion
+16
-20
drivers/gpu/drm/nouveau/core/include/subdev/fb.h
drivers/gpu/drm/nouveau/core/include/subdev/fb.h
+0
-1
drivers/gpu/drm/nouveau/core/subdev/fb/nv30.c
drivers/gpu/drm/nouveau/core/subdev/fb/nv30.c
+8
-11
drivers/gpu/drm/nouveau/core/subdev/fb/nv35.c
drivers/gpu/drm/nouveau/core/subdev/fb/nv35.c
+1
-1
drivers/gpu/drm/nouveau/core/subdev/fb/nv40.c
drivers/gpu/drm/nouveau/core/subdev/fb/nv40.c
+1
-1
drivers/gpu/drm/nouveau/core/subdev/fb/nv41.c
drivers/gpu/drm/nouveau/core/subdev/fb/nv41.c
+1
-1
drivers/gpu/drm/nouveau/core/subdev/fb/nv44.c
drivers/gpu/drm/nouveau/core/subdev/fb/nv44.c
+1
-1
drivers/gpu/drm/nouveau/core/subdev/fb/nv46.c
drivers/gpu/drm/nouveau/core/subdev/fb/nv46.c
+1
-1
drivers/gpu/drm/nouveau/core/subdev/fb/nv47.c
drivers/gpu/drm/nouveau/core/subdev/fb/nv47.c
+1
-1
drivers/gpu/drm/nouveau/core/subdev/fb/nv49.c
drivers/gpu/drm/nouveau/core/subdev/fb/nv49.c
+1
-1
drivers/gpu/drm/nouveau/core/subdev/fb/nv4e.c
drivers/gpu/drm/nouveau/core/subdev/fb/nv4e.c
+1
-1
未找到文件。
drivers/gpu/drm/nouveau/core/include/subdev/fb.h
浏览文件 @
e1344412
...
...
@@ -148,7 +148,6 @@ void nv20_fb_tile_prog(struct nouveau_fb *, int, struct nouveau_fb_tile *);
int
nv30_fb_init
(
struct
nouveau_object
*
);
void
nv30_fb_tile_init
(
struct
nouveau_fb
*
,
int
i
,
u32
addr
,
u32
size
,
u32
pitch
,
u32
flags
,
struct
nouveau_fb_tile
*
);
void
nv30_fb_tile_fini
(
struct
nouveau_fb
*
,
int
i
,
struct
nouveau_fb_tile
*
);
int
nv41_fb_vram_init
(
struct
nouveau_fb
*
);
int
nv41_fb_init
(
struct
nouveau_object
*
);
...
...
drivers/gpu/drm/nouveau/core/subdev/fb/nv30.c
浏览文件 @
e1344412
...
...
@@ -35,8 +35,13 @@ nv30_fb_tile_init(struct nouveau_fb *pfb, int i, u32 addr, u32 size, u32 pitch,
u32
flags
,
struct
nouveau_fb_tile
*
tile
)
{
/* for performance, select alternate bank offset for zeta */
if
(
!
(
flags
&
4
))
tile
->
addr
=
(
0
<<
4
);
else
tile
->
addr
=
(
1
<<
4
);
if
(
!
(
flags
&
4
))
{
tile
->
addr
=
(
0
<<
4
);
}
else
{
if
(
pfb
->
tile
.
comp
)
/* z compression */
pfb
->
tile
.
comp
(
pfb
,
i
,
size
,
flags
,
tile
);
tile
->
addr
=
(
1
<<
4
);
}
tile
->
addr
|=
0x00000001
;
/* enable */
tile
->
addr
|=
addr
;
...
...
@@ -51,14 +56,6 @@ nv30_fb_tile_comp(struct nouveau_fb *pfb, int i, u32 size, u32 flags,
tile
->
zcomp
=
0x00000000
;
}
void
nv30_fb_tile_fini
(
struct
nouveau_fb
*
pfb
,
int
i
,
struct
nouveau_fb_tile
*
tile
)
{
tile
->
addr
=
0
;
tile
->
limit
=
0
;
tile
->
pitch
=
0
;
}
static
int
calc_bias
(
struct
nv30_fb_priv
*
priv
,
int
k
,
int
i
,
int
j
)
{
...
...
@@ -135,7 +132,7 @@ nv30_fb_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
priv
->
base
.
tile
.
regions
=
8
;
priv
->
base
.
tile
.
init
=
nv30_fb_tile_init
;
priv
->
base
.
tile
.
comp
=
nv30_fb_tile_comp
;
priv
->
base
.
tile
.
fini
=
nv
3
0_fb_tile_fini
;
priv
->
base
.
tile
.
fini
=
nv
2
0_fb_tile_fini
;
priv
->
base
.
tile
.
prog
=
nv20_fb_tile_prog
;
return
nouveau_fb_preinit
(
&
priv
->
base
);
}
...
...
drivers/gpu/drm/nouveau/core/subdev/fb/nv35.c
浏览文件 @
e1344412
...
...
@@ -55,7 +55,7 @@ nv35_fb_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
priv
->
base
.
tile
.
regions
=
8
;
priv
->
base
.
tile
.
init
=
nv30_fb_tile_init
;
priv
->
base
.
tile
.
comp
=
nv35_fb_tile_comp
;
priv
->
base
.
tile
.
fini
=
nv
3
0_fb_tile_fini
;
priv
->
base
.
tile
.
fini
=
nv
2
0_fb_tile_fini
;
priv
->
base
.
tile
.
prog
=
nv20_fb_tile_prog
;
return
nouveau_fb_preinit
(
&
priv
->
base
);
}
...
...
drivers/gpu/drm/nouveau/core/subdev/fb/nv40.c
浏览文件 @
e1344412
...
...
@@ -84,7 +84,7 @@ nv40_fb_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
priv
->
base
.
tile
.
regions
=
8
;
priv
->
base
.
tile
.
init
=
nv30_fb_tile_init
;
priv
->
base
.
tile
.
comp
=
nv40_fb_tile_comp
;
priv
->
base
.
tile
.
fini
=
nv
3
0_fb_tile_fini
;
priv
->
base
.
tile
.
fini
=
nv
2
0_fb_tile_fini
;
priv
->
base
.
tile
.
prog
=
nv20_fb_tile_prog
;
return
nouveau_fb_preinit
(
&
priv
->
base
);
}
...
...
drivers/gpu/drm/nouveau/core/subdev/fb/nv41.c
浏览文件 @
e1344412
...
...
@@ -86,7 +86,7 @@ nv41_fb_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
priv
->
base
.
ram
.
init
=
nv41_fb_vram_init
;
priv
->
base
.
tile
.
regions
=
12
;
priv
->
base
.
tile
.
init
=
nv30_fb_tile_init
;
priv
->
base
.
tile
.
fini
=
nv
3
0_fb_tile_fini
;
priv
->
base
.
tile
.
fini
=
nv
2
0_fb_tile_fini
;
priv
->
base
.
tile
.
prog
=
nv41_fb_tile_prog
;
return
nouveau_fb_preinit
(
&
priv
->
base
);
}
...
...
drivers/gpu/drm/nouveau/core/subdev/fb/nv44.c
浏览文件 @
e1344412
...
...
@@ -96,7 +96,7 @@ nv44_fb_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
priv
->
base
.
ram
.
init
=
nv44_fb_vram_init
;
priv
->
base
.
tile
.
regions
=
12
;
priv
->
base
.
tile
.
init
=
nv44_fb_tile_init
;
priv
->
base
.
tile
.
fini
=
nv
3
0_fb_tile_fini
;
priv
->
base
.
tile
.
fini
=
nv
2
0_fb_tile_fini
;
priv
->
base
.
tile
.
prog
=
nv44_fb_tile_prog
;
return
nouveau_fb_preinit
(
&
priv
->
base
);
}
...
...
drivers/gpu/drm/nouveau/core/subdev/fb/nv46.c
浏览文件 @
e1344412
...
...
@@ -61,7 +61,7 @@ nv46_fb_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
priv
->
base
.
ram
.
init
=
nv44_fb_vram_init
;
priv
->
base
.
tile
.
regions
=
15
;
priv
->
base
.
tile
.
init
=
nv46_fb_tile_init
;
priv
->
base
.
tile
.
fini
=
nv
3
0_fb_tile_fini
;
priv
->
base
.
tile
.
fini
=
nv
2
0_fb_tile_fini
;
priv
->
base
.
tile
.
prog
=
nv44_fb_tile_prog
;
return
nouveau_fb_preinit
(
&
priv
->
base
);
}
...
...
drivers/gpu/drm/nouveau/core/subdev/fb/nv47.c
浏览文件 @
e1344412
...
...
@@ -47,7 +47,7 @@ nv47_fb_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
priv
->
base
.
ram
.
init
=
nv41_fb_vram_init
;
priv
->
base
.
tile
.
regions
=
15
;
priv
->
base
.
tile
.
init
=
nv30_fb_tile_init
;
priv
->
base
.
tile
.
fini
=
nv
3
0_fb_tile_fini
;
priv
->
base
.
tile
.
fini
=
nv
2
0_fb_tile_fini
;
priv
->
base
.
tile
.
prog
=
nv41_fb_tile_prog
;
return
nouveau_fb_preinit
(
&
priv
->
base
);
}
...
...
drivers/gpu/drm/nouveau/core/subdev/fb/nv49.c
浏览文件 @
e1344412
...
...
@@ -63,7 +63,7 @@ nv49_fb_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
priv
->
base
.
ram
.
init
=
nv49_fb_vram_init
;
priv
->
base
.
tile
.
regions
=
15
;
priv
->
base
.
tile
.
init
=
nv30_fb_tile_init
;
priv
->
base
.
tile
.
fini
=
nv
3
0_fb_tile_fini
;
priv
->
base
.
tile
.
fini
=
nv
2
0_fb_tile_fini
;
priv
->
base
.
tile
.
prog
=
nv41_fb_tile_prog
;
return
nouveau_fb_preinit
(
&
priv
->
base
);
...
...
drivers/gpu/drm/nouveau/core/subdev/fb/nv4e.c
浏览文件 @
e1344412
...
...
@@ -55,7 +55,7 @@ nv4e_fb_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
priv
->
base
.
ram
.
init
=
nv4e_fb_vram_init
;
priv
->
base
.
tile
.
regions
=
12
;
priv
->
base
.
tile
.
init
=
nv46_fb_tile_init
;
priv
->
base
.
tile
.
fini
=
nv
3
0_fb_tile_fini
;
priv
->
base
.
tile
.
fini
=
nv
2
0_fb_tile_fini
;
priv
->
base
.
tile
.
prog
=
nv44_fb_tile_prog
;
return
nouveau_fb_preinit
(
&
priv
->
base
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录