Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
d4c2c99b
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d4c2c99b
编写于
11月 15, 2011
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/dp: remove broken display depth function, use the improved one
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
c37e9905
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
12 addition
and
22 deletion
+12
-22
drivers/gpu/drm/nouveau/nouveau_connector.c
drivers/gpu/drm/nouveau/nouveau_connector.c
+12
-22
未找到文件。
drivers/gpu/drm/nouveau/nouveau_connector.c
浏览文件 @
d4c2c99b
...
...
@@ -78,23 +78,6 @@ nouveau_encoder_connector_get(struct nouveau_encoder *encoder)
return
NULL
;
}
/*TODO: This could use improvement, and learn to handle the fixed
* BIOS tables etc. It's fine currently, for its only user.
*/
int
nouveau_connector_bpp
(
struct
drm_connector
*
connector
)
{
struct
nouveau_connector
*
nv_connector
=
nouveau_connector
(
connector
);
if
(
nv_connector
->
edid
&&
nv_connector
->
edid
->
revision
>=
4
)
{
u8
bpc
=
((
nv_connector
->
edid
->
input
&
0x70
)
>>
3
)
+
4
;
if
(
bpc
>
4
)
return
bpc
;
}
return
18
;
}
static
void
nouveau_connector_destroy
(
struct
drm_connector
*
connector
)
{
...
...
@@ -714,6 +697,12 @@ nouveau_connector_get_modes(struct drm_connector *connector)
nv_connector
->
native_mode
=
drm_mode_duplicate
(
dev
,
&
mode
);
}
/* Determine display colour depth for everything except LVDS now,
* DP requires this before mode_valid() is called.
*/
if
(
connector
->
connector_type
!=
DRM_MODE_CONNECTOR_LVDS
)
nouveau_connector_detect_depth
(
connector
);
/* Find the native mode if this is a digital panel, if we didn't
* find any modes through DDC previously add the native mode to
* the list of modes.
...
...
@@ -729,11 +718,12 @@ nouveau_connector_get_modes(struct drm_connector *connector)
ret
=
1
;
}
/*
Attempt to determine display colour depth, this has to happen after
*
we've determined the "native" mode for LVDS, as the VBIOS tables
*
require us to compare against a pixel clock in some cases
..
/*
Determine LVDS colour depth, must happen after determining
*
"native" mode as some VBIOS tables require us to use the
*
pixel clock as part of the lookup.
..
*/
nouveau_connector_detect_depth
(
connector
);
if
(
connector
->
connector_type
==
DRM_MODE_CONNECTOR_LVDS
)
nouveau_connector_detect_depth
(
connector
);
if
(
nv_encoder
->
dcb
->
type
==
OUTPUT_TV
)
ret
=
get_slave_funcs
(
encoder
)
->
get_modes
(
encoder
,
connector
);
...
...
@@ -799,7 +789,7 @@ nouveau_connector_mode_valid(struct drm_connector *connector,
case
OUTPUT_DP
:
max_clock
=
nv_encoder
->
dp
.
link_nr
;
max_clock
*=
nv_encoder
->
dp
.
link_bw
;
clock
=
clock
*
nouveau_connector_bpp
(
connector
)
/
10
;
clock
=
clock
*
(
connector
->
display_info
.
bpc
*
3
)
/
10
;
break
;
default:
BUG_ON
(
1
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录