Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
9b8d9d0e
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
9b8d9d0e
编写于
1月 08, 2007
作者:
T
Thomas Hellstrom
提交者:
Dave Airlie
2月 08, 2007
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
via: allow for npot texture pitch alignment
Signed-off-by:
N
Dave Airlie
<
airlied@linux.ie
>
上级
689692e7
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
24 addition
and
11 deletion
+24
-11
drivers/char/drm/via_drv.h
drivers/char/drm/via_drv.h
+2
-2
drivers/char/drm/via_verifier.c
drivers/char/drm/via_verifier.c
+21
-9
drivers/char/drm/via_verifier.h
drivers/char/drm/via_verifier.h
+1
-0
未找到文件。
drivers/char/drm/via_drv.h
浏览文件 @
9b8d9d0e
...
...
@@ -29,10 +29,10 @@
#define DRIVER_NAME "via"
#define DRIVER_DESC "VIA Unichrome / Pro"
#define DRIVER_DATE "2006
0529
"
#define DRIVER_DATE "2006
1227
"
#define DRIVER_MAJOR 2
#define DRIVER_MINOR 1
0
#define DRIVER_MINOR 1
1
#define DRIVER_PATCHLEVEL 0
#include "via_verifier.h"
...
...
drivers/char/drm/via_verifier.c
浏览文件 @
9b8d9d0e
...
...
@@ -306,6 +306,7 @@ static __inline__ int finish_current_sequence(drm_via_state_t * cur_seq)
unsigned
long
lo
=
~
0
,
hi
=
0
,
tmp
;
uint32_t
*
addr
,
*
pitch
,
*
height
,
tex
;
unsigned
i
;
int
npot
;
if
(
end
>
9
)
end
=
9
;
...
...
@@ -316,12 +317,15 @@ static __inline__ int finish_current_sequence(drm_via_state_t * cur_seq)
&
(
cur_seq
->
t_addr
[
tex
=
cur_seq
->
texture
][
start
]);
pitch
=
&
(
cur_seq
->
pitch
[
tex
][
start
]);
height
=
&
(
cur_seq
->
height
[
tex
][
start
]);
npot
=
cur_seq
->
tex_npot
[
tex
];
for
(
i
=
start
;
i
<=
end
;
++
i
)
{
tmp
=
*
addr
++
;
if
(
tmp
<
lo
)
lo
=
tmp
;
tmp
+=
(
*
height
++
<<
*
pitch
++
);
if
(
i
==
0
&&
npot
)
tmp
+=
(
*
height
++
*
*
pitch
++
);
else
tmp
+=
(
*
height
++
<<
*
pitch
++
);
if
(
tmp
>
hi
)
hi
=
tmp
;
}
...
...
@@ -443,13 +447,21 @@ investigate_hazard(uint32_t cmd, hazard_t hz, drm_via_state_t * cur_seq)
return
0
;
case
check_texture_addr3
:
cur_seq
->
unfinished
=
tex_address
;
tmp
=
((
cmd
>>
24
)
-
0x2B
);
cur_seq
->
pitch
[
cur_seq
->
texture
][
tmp
]
=
(
cmd
&
0x00F00000
)
>>
20
;
if
(
!
tmp
&&
(
cmd
&
0x000FFFFF
))
{
DRM_ERROR
(
"Unimplemented texture level 0 pitch mode.
\n
"
);
return
2
;
tmp
=
((
cmd
>>
24
)
-
HC_SubA_HTXnL0Pit
);
if
(
tmp
==
0
&&
(
cmd
&
HC_HTXnEnPit_MASK
))
{
cur_seq
->
pitch
[
cur_seq
->
texture
][
tmp
]
=
(
cmd
&
HC_HTXnLnPit_MASK
);
cur_seq
->
tex_npot
[
cur_seq
->
texture
]
=
1
;
}
else
{
cur_seq
->
pitch
[
cur_seq
->
texture
][
tmp
]
=
(
cmd
&
HC_HTXnLnPitE_MASK
)
>>
HC_HTXnLnPitE_SHIFT
;
cur_seq
->
tex_npot
[
cur_seq
->
texture
]
=
0
;
if
(
cmd
&
0x000FFFFF
)
{
DRM_ERROR
(
"Unimplemented texture level 0 pitch mode.
\n
"
);
return
2
;
}
}
return
0
;
case
check_texture_addr4
:
...
...
drivers/char/drm/via_verifier.h
浏览文件 @
9b8d9d0e
...
...
@@ -43,6 +43,7 @@ typedef struct {
uint32_t
tex_level_lo
[
2
];
uint32_t
tex_level_hi
[
2
];
uint32_t
tex_palette_size
[
2
];
uint32_t
tex_npot
[
2
];
drm_via_sequence_t
unfinished
;
int
agp_texture
;
int
multitex
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录