Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
7375c95b
K
Kernel
项目概览
openeuler
/
Kernel
大约 1 年 前同步成功
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7375c95b
编写于
6月 07, 2011
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau: remove 'chan' argument from nouveau_bo_new
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
e758a311
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
15 addition
and
18 deletion
+15
-18
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/nouveau/nouveau_bo.c
+3
-5
drivers/gpu/drm/nouveau/nouveau_channel.c
drivers/gpu/drm/nouveau/nouveau_channel.c
+1
-1
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_drv.h
+3
-4
drivers/gpu/drm/nouveau/nouveau_fence.c
drivers/gpu/drm/nouveau/nouveau_fence.c
+1
-1
drivers/gpu/drm/nouveau/nouveau_gem.c
drivers/gpu/drm/nouveau/nouveau_gem.c
+1
-1
drivers/gpu/drm/nouveau/nouveau_mem.c
drivers/gpu/drm/nouveau/nouveau_mem.c
+1
-1
drivers/gpu/drm/nouveau/nv04_crtc.c
drivers/gpu/drm/nouveau/nv04_crtc.c
+1
-1
drivers/gpu/drm/nouveau/nv50_crtc.c
drivers/gpu/drm/nouveau/nv50_crtc.c
+2
-2
drivers/gpu/drm/nouveau/nv50_evo.c
drivers/gpu/drm/nouveau/nv50_evo.c
+2
-2
未找到文件。
drivers/gpu/drm/nouveau/nouveau_bo.c
浏览文件 @
7375c95b
...
...
@@ -87,9 +87,9 @@ nouveau_bo_fixup_align(struct nouveau_bo *nvbo, u32 flags,
}
int
nouveau_bo_new
(
struct
drm_device
*
dev
,
struct
nouveau_channel
*
cha
n
,
int
size
,
int
align
,
uint32_t
flags
,
uint32_t
tile_mode
,
uint32_t
tile_flags
,
struct
nouveau_bo
**
pnvbo
)
nouveau_bo_new
(
struct
drm_device
*
dev
,
int
size
,
int
alig
n
,
uint32_t
flags
,
uint32_t
tile_mode
,
uint32_t
tile_flags
,
struct
nouveau_bo
**
pnvbo
)
{
struct
drm_nouveau_private
*
dev_priv
=
dev
->
dev_private
;
struct
nouveau_bo
*
nvbo
;
...
...
@@ -123,7 +123,6 @@ nouveau_bo_new(struct drm_device *dev, struct nouveau_channel *chan,
}
}
nvbo
->
channel
=
chan
;
ret
=
ttm_bo_init
(
&
dev_priv
->
ttm
.
bdev
,
&
nvbo
->
bo
,
size
,
ttm_bo_type_device
,
&
nvbo
->
placement
,
align
>>
PAGE_SHIFT
,
0
,
false
,
NULL
,
size
,
...
...
@@ -132,7 +131,6 @@ nouveau_bo_new(struct drm_device *dev, struct nouveau_channel *chan,
/* ttm will call nouveau_bo_del_ttm if it fails.. */
return
ret
;
}
nvbo
->
channel
=
NULL
;
*
pnvbo
=
nvbo
;
return
0
;
...
...
drivers/gpu/drm/nouveau/nouveau_channel.c
浏览文件 @
7375c95b
...
...
@@ -38,7 +38,7 @@ nouveau_channel_pushbuf_init(struct nouveau_channel *chan)
int
ret
;
/* allocate buffer object */
ret
=
nouveau_bo_new
(
dev
,
NULL
,
65536
,
0
,
mem
,
0
,
0
,
&
chan
->
pushbuf_bo
);
ret
=
nouveau_bo_new
(
dev
,
65536
,
0
,
mem
,
0
,
0
,
&
chan
->
pushbuf_bo
);
if
(
ret
)
goto
out
;
...
...
drivers/gpu/drm/nouveau/nouveau_drv.h
浏览文件 @
7375c95b
...
...
@@ -1270,10 +1270,9 @@ extern int nv04_crtc_create(struct drm_device *, int index);
/* nouveau_bo.c */
extern
struct
ttm_bo_driver
nouveau_bo_driver
;
extern
int
nouveau_bo_new
(
struct
drm_device
*
,
struct
nouveau_channel
*
,
int
size
,
int
align
,
uint32_t
flags
,
uint32_t
tile_mode
,
uint32_t
tile_flags
,
struct
nouveau_bo
**
);
extern
int
nouveau_bo_new
(
struct
drm_device
*
,
int
size
,
int
align
,
uint32_t
flags
,
uint32_t
tile_mode
,
uint32_t
tile_flags
,
struct
nouveau_bo
**
);
extern
int
nouveau_bo_pin
(
struct
nouveau_bo
*
,
uint32_t
flags
);
extern
int
nouveau_bo_unpin
(
struct
nouveau_bo
*
);
extern
int
nouveau_bo_map
(
struct
nouveau_bo
*
);
...
...
drivers/gpu/drm/nouveau/nouveau_fence.c
浏览文件 @
7375c95b
...
...
@@ -574,7 +574,7 @@ nouveau_fence_init(struct drm_device *dev)
/* Create a shared VRAM heap for cross-channel sync. */
if
(
USE_SEMA
(
dev
))
{
ret
=
nouveau_bo_new
(
dev
,
NULL
,
size
,
0
,
TTM_PL_FLAG_VRAM
,
ret
=
nouveau_bo_new
(
dev
,
size
,
0
,
TTM_PL_FLAG_VRAM
,
0
,
0
,
&
dev_priv
->
fence
.
bo
);
if
(
ret
)
return
ret
;
...
...
drivers/gpu/drm/nouveau/nouveau_gem.c
浏览文件 @
7375c95b
...
...
@@ -96,7 +96,7 @@ nouveau_gem_new(struct drm_device *dev, int size, int align, uint32_t domain,
if
(
!
flags
||
domain
&
NOUVEAU_GEM_DOMAIN_CPU
)
flags
|=
TTM_PL_FLAG_SYSTEM
;
ret
=
nouveau_bo_new
(
dev
,
NULL
,
size
,
align
,
flags
,
tile_mode
,
ret
=
nouveau_bo_new
(
dev
,
size
,
align
,
flags
,
tile_mode
,
tile_flags
,
pnvbo
);
if
(
ret
)
return
ret
;
...
...
drivers/gpu/drm/nouveau/nouveau_mem.c
浏览文件 @
7375c95b
...
...
@@ -479,7 +479,7 @@ nouveau_mem_vram_init(struct drm_device *dev)
}
if
(
dev_priv
->
card_type
<
NV_50
)
{
ret
=
nouveau_bo_new
(
dev
,
NULL
,
256
*
1024
,
0
,
TTM_PL_FLAG_VRAM
,
ret
=
nouveau_bo_new
(
dev
,
256
*
1024
,
0
,
TTM_PL_FLAG_VRAM
,
0
,
0
,
&
dev_priv
->
vga_ram
);
if
(
ret
==
0
)
ret
=
nouveau_bo_pin
(
dev_priv
->
vga_ram
,
...
...
drivers/gpu/drm/nouveau/nv04_crtc.c
浏览文件 @
7375c95b
...
...
@@ -1035,7 +1035,7 @@ nv04_crtc_create(struct drm_device *dev, int crtc_num)
drm_crtc_helper_add
(
&
nv_crtc
->
base
,
&
nv04_crtc_helper_funcs
);
drm_mode_crtc_set_gamma_size
(
&
nv_crtc
->
base
,
256
);
ret
=
nouveau_bo_new
(
dev
,
NULL
,
64
*
64
*
4
,
0x100
,
TTM_PL_FLAG_VRAM
,
ret
=
nouveau_bo_new
(
dev
,
64
*
64
*
4
,
0x100
,
TTM_PL_FLAG_VRAM
,
0
,
0x0000
,
&
nv_crtc
->
cursor
.
nvbo
);
if
(
!
ret
)
{
ret
=
nouveau_bo_pin
(
nv_crtc
->
cursor
.
nvbo
,
TTM_PL_FLAG_VRAM
);
...
...
drivers/gpu/drm/nouveau/nv50_crtc.c
浏览文件 @
7375c95b
...
...
@@ -747,7 +747,7 @@ nv50_crtc_create(struct drm_device *dev, int index)
}
nv_crtc
->
lut
.
depth
=
0
;
ret
=
nouveau_bo_new
(
dev
,
NULL
,
4096
,
0x100
,
TTM_PL_FLAG_VRAM
,
ret
=
nouveau_bo_new
(
dev
,
4096
,
0x100
,
TTM_PL_FLAG_VRAM
,
0
,
0x0000
,
&
nv_crtc
->
lut
.
nvbo
);
if
(
!
ret
)
{
ret
=
nouveau_bo_pin
(
nv_crtc
->
lut
.
nvbo
,
TTM_PL_FLAG_VRAM
);
...
...
@@ -773,7 +773,7 @@ nv50_crtc_create(struct drm_device *dev, int index)
drm_crtc_helper_add
(
&
nv_crtc
->
base
,
&
nv50_crtc_helper_funcs
);
drm_mode_crtc_set_gamma_size
(
&
nv_crtc
->
base
,
256
);
ret
=
nouveau_bo_new
(
dev
,
NULL
,
64
*
64
*
4
,
0x100
,
TTM_PL_FLAG_VRAM
,
ret
=
nouveau_bo_new
(
dev
,
64
*
64
*
4
,
0x100
,
TTM_PL_FLAG_VRAM
,
0
,
0x0000
,
&
nv_crtc
->
cursor
.
nvbo
);
if
(
!
ret
)
{
ret
=
nouveau_bo_pin
(
nv_crtc
->
cursor
.
nvbo
,
TTM_PL_FLAG_VRAM
);
...
...
drivers/gpu/drm/nouveau/nv50_evo.c
浏览文件 @
7375c95b
...
...
@@ -117,7 +117,7 @@ nv50_evo_channel_new(struct drm_device *dev, int chid,
evo
->
user_get
=
4
;
evo
->
user_put
=
0
;
ret
=
nouveau_bo_new
(
dev
,
NULL
,
4096
,
0
,
TTM_PL_FLAG_VRAM
,
0
,
0
,
ret
=
nouveau_bo_new
(
dev
,
4096
,
0
,
TTM_PL_FLAG_VRAM
,
0
,
0
,
&
evo
->
pushbuf_bo
);
if
(
ret
==
0
)
ret
=
nouveau_bo_pin
(
evo
->
pushbuf_bo
,
TTM_PL_FLAG_VRAM
);
...
...
@@ -332,7 +332,7 @@ nv50_evo_create(struct drm_device *dev)
if
(
ret
)
goto
err
;
ret
=
nouveau_bo_new
(
dev
,
NULL
,
4096
,
0x1000
,
TTM_PL_FLAG_VRAM
,
ret
=
nouveau_bo_new
(
dev
,
4096
,
0x1000
,
TTM_PL_FLAG_VRAM
,
0
,
0x0000
,
&
dispc
->
sem
.
bo
);
if
(
!
ret
)
{
ret
=
nouveau_bo_pin
(
dispc
->
sem
.
bo
,
TTM_PL_FLAG_VRAM
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录