Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
88b600d4
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
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看板
提交
88b600d4
编写于
5月 08, 2018
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/kms/gk104-: add support for [XA]2R10G10B10 formats
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
01d380ab
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
57 addition
and
3 deletion
+57
-3
drivers/gpu/drm/nouveau/dispnv50/Kbuild
drivers/gpu/drm/nouveau/dispnv50/Kbuild
+1
-0
drivers/gpu/drm/nouveau/dispnv50/base.c
drivers/gpu/drm/nouveau/dispnv50/base.c
+2
-2
drivers/gpu/drm/nouveau/dispnv50/base.h
drivers/gpu/drm/nouveau/dispnv50/base.h
+3
-0
drivers/gpu/drm/nouveau/dispnv50/base907c.c
drivers/gpu/drm/nouveau/dispnv50/base907c.c
+1
-1
drivers/gpu/drm/nouveau/dispnv50/base917c.c
drivers/gpu/drm/nouveau/dispnv50/base917c.c
+48
-0
drivers/gpu/drm/nouveau/dispnv50/wndw.c
drivers/gpu/drm/nouveau/dispnv50/wndw.c
+2
-0
未找到文件。
drivers/gpu/drm/nouveau/dispnv50/Kbuild
浏览文件 @
88b600d4
...
...
@@ -27,6 +27,7 @@ nouveau-y += dispnv50/base.o
nouveau-y += dispnv50/base507c.o
nouveau-y += dispnv50/base827c.o
nouveau-y += dispnv50/base907c.o
nouveau-y += dispnv50/base917c.o
nouveau-y += dispnv50/curs.o
nouveau-y += dispnv50/curs507a.o
...
...
drivers/gpu/drm/nouveau/dispnv50/base.c
浏览文件 @
88b600d4
...
...
@@ -31,8 +31,8 @@ nv50_base_new(struct nouveau_drm *drm, int head, struct nv50_wndw **pwndw)
int
version
;
int
(
*
new
)(
struct
nouveau_drm
*
,
int
,
s32
,
struct
nv50_wndw
**
);
}
bases
[]
=
{
{
GK110_DISP_BASE_CHANNEL_DMA
,
0
,
base9
0
7c_new
},
{
GK104_DISP_BASE_CHANNEL_DMA
,
0
,
base9
0
7c_new
},
{
GK110_DISP_BASE_CHANNEL_DMA
,
0
,
base9
1
7c_new
},
{
GK104_DISP_BASE_CHANNEL_DMA
,
0
,
base9
1
7c_new
},
{
GF110_DISP_BASE_CHANNEL_DMA
,
0
,
base907c_new
},
{
GT214_DISP_BASE_CHANNEL_DMA
,
0
,
base827c_new
},
{
GT200_DISP_BASE_CHANNEL_DMA
,
0
,
base827c_new
},
...
...
drivers/gpu/drm/nouveau/dispnv50/base.h
浏览文件 @
88b600d4
...
...
@@ -25,6 +25,9 @@ void base507c_update(struct nv50_wndw *, u32 *);
int
base827c_new
(
struct
nouveau_drm
*
,
int
,
s32
,
struct
nv50_wndw
**
);
int
base907c_new
(
struct
nouveau_drm
*
,
int
,
s32
,
struct
nv50_wndw
**
);
extern
const
struct
nv50_wndw_func
base907c
;
int
base917c_new
(
struct
nouveau_drm
*
,
int
,
s32
,
struct
nv50_wndw
**
);
int
nv50_base_new
(
struct
nouveau_drm
*
,
int
head
,
struct
nv50_wndw
**
);
#endif
drivers/gpu/drm/nouveau/dispnv50/base907c.c
浏览文件 @
88b600d4
...
...
@@ -82,7 +82,7 @@ base907c_ilut(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
asyw
->
xlut
.
i
.
enable
=
2
;
}
static
const
struct
nv50_wndw_func
const
struct
nv50_wndw_func
base907c
=
{
.
acquire
=
base507c_acquire
,
.
release
=
base507c_release
,
...
...
drivers/gpu/drm/nouveau/dispnv50/base917c.c
0 → 100644
浏览文件 @
88b600d4
/*
* Copyright 2018 Red Hat Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
#include "base.h"
#include "atom.h"
const
u32
base917c_format
[]
=
{
DRM_FORMAT_C8
,
DRM_FORMAT_XRGB8888
,
DRM_FORMAT_ARGB8888
,
DRM_FORMAT_RGB565
,
DRM_FORMAT_XRGB1555
,
DRM_FORMAT_ARGB1555
,
DRM_FORMAT_XBGR2101010
,
DRM_FORMAT_ABGR2101010
,
DRM_FORMAT_XBGR8888
,
DRM_FORMAT_ABGR8888
,
DRM_FORMAT_XRGB2101010
,
DRM_FORMAT_ARGB2101010
,
0
};
int
base917c_new
(
struct
nouveau_drm
*
drm
,
int
head
,
s32
oclass
,
struct
nv50_wndw
**
pwndw
)
{
return
base507c_new_
(
&
base907c
,
base917c_format
,
drm
,
head
,
oclass
,
0x00000002
<<
(
head
*
4
),
pwndw
);
}
drivers/gpu/drm/nouveau/dispnv50/wndw.c
浏览文件 @
88b600d4
...
...
@@ -194,6 +194,8 @@ nv50_wndw_atomic_check_acquire_rgb(struct nv50_wndw_atom *asyw)
case
DRM_FORMAT_ABGR2101010
:
asyw
->
image
.
format
=
0xd1
;
break
;
case
DRM_FORMAT_XBGR8888
:
case
DRM_FORMAT_ABGR8888
:
asyw
->
image
.
format
=
0xd5
;
break
;
case
DRM_FORMAT_XRGB2101010
:
case
DRM_FORMAT_ARGB2101010
:
asyw
->
image
.
format
=
0xdf
;
break
;
default:
WARN_ON
(
1
);
return
-
EINVAL
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录