Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libva
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
libva
Commits
120cee22
Commit
120cee22
authored
Jun 18, 2010
by
Xiang, Haihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i965_drv_video: fix AVC mc kernel
parent
58d70597
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
i965_drv_video/shaders/h264/mc/avc_mc.g4b
i965_drv_video/shaders/h264/mc/avc_mc.g4b
+3
-3
i965_drv_video/shaders/h264/mc/avc_mc.g4b.gen5
i965_drv_video/shaders/h264/mc/avc_mc.g4b.gen5
+3
-3
i965_drv_video/shaders/h264/mc/intra_Pred_8x8_Y.asm
i965_drv_video/shaders/h264/mc/intra_Pred_8x8_Y.asm
+2
-2
No files found.
i965_drv_video/shaders/h264/mc/avc_mc.g4b
View file @
120cee22
...
@@ -344,7 +344,7 @@
...
@@ -344,7 +344,7 @@
{ 0x80800040, 0xd04045b1, 0x00b18840, 0x002c0744 },
{ 0x80800040, 0xd04045b1, 0x00b18840, 0x002c0744 },
{ 0x80800040, 0xd06045b1, 0x00b18860, 0x002c0746 },
{ 0x80800040, 0xd06045b1, 0x00b18860, 0x002c0746 },
{ 0x00000001, 0x34000020, 0x000007e0, 0x00000000 },
{ 0x00000001, 0x34000020, 0x000007e0, 0x00000000 },
{ 0x0280
0
005, 0x20003da0, 0x00000708, 0x00020002 },
{ 0x0280
2
005, 0x20003da0, 0x00000708, 0x00020002 },
{ 0x02600005, 0x20003da0, 0x02000708, 0x00010001 },
{ 0x02600005, 0x20003da0, 0x02000708, 0x00010001 },
{ 0x009a0001, 0x27200169, 0x00000000, 0x80808080 },
{ 0x009a0001, 0x27200169, 0x00000000, 0x80808080 },
{ 0x00780001, 0x27400231, 0x028d0724, 0x00000000 },
{ 0x00780001, 0x27400231, 0x028d0724, 0x00000000 },
...
@@ -423,7 +423,7 @@
...
@@ -423,7 +423,7 @@
{ 0x00800040, 0x24003e2c, 0x00b10726, 0x00020002 },
{ 0x00800040, 0x24003e2c, 0x00b10726, 0x00020002 },
{ 0x00800048, 0x24003e2c, 0x00b10725, 0x00020002 },
{ 0x00800048, 0x24003e2c, 0x00b10725, 0x00020002 },
{ 0x00800048, 0x24003e2c, 0x00b10724, 0x00010001 },
{ 0x00800048, 0x24003e2c, 0x00b10724, 0x00010001 },
{ 0x00800008, 0x25e03d89, 0x002
4
0400, 0x00020002 },
{ 0x00800008, 0x25e03d89, 0x002
d
0400, 0x00020002 },
{ 0x80800040, 0xd0003531, 0x00ad05c0, 0x00b18800 },
{ 0x80800040, 0xd0003531, 0x00ad05c0, 0x00b18800 },
{ 0x80800040, 0xd0203531, 0x00ad05c2, 0x00b18820 },
{ 0x80800040, 0xd0203531, 0x00ad05c2, 0x00b18820 },
{ 0x80800040, 0xd0403531, 0x00ad05c4, 0x00b18840 },
{ 0x80800040, 0xd0403531, 0x00ad05c4, 0x00b18840 },
...
@@ -434,7 +434,7 @@
...
@@ -434,7 +434,7 @@
{ 0x00800040, 0x24003e2c, 0x00b10742, 0x00020002 },
{ 0x00800040, 0x24003e2c, 0x00b10742, 0x00020002 },
{ 0x00800048, 0x24003e2c, 0x00b10741, 0x00020002 },
{ 0x00800048, 0x24003e2c, 0x00b10741, 0x00020002 },
{ 0x00800048, 0x24003e2c, 0x00b10740, 0x00010001 },
{ 0x00800048, 0x24003e2c, 0x00b10740, 0x00010001 },
{ 0x00800008, 0x25e03d89, 0x002
4
0400, 0x00020002 },
{ 0x00800008, 0x25e03d89, 0x002
d
0400, 0x00020002 },
{ 0x00800001, 0x45c10231, 0x00d205e0, 0x00000000 },
{ 0x00800001, 0x45c10231, 0x00d205e0, 0x00000000 },
{ 0x80800040, 0xd0003631, 0x004d05c0, 0x00b18800 },
{ 0x80800040, 0xd0003631, 0x004d05c0, 0x00b18800 },
{ 0x80800040, 0xd0203631, 0x004d05c4, 0x00b18820 },
{ 0x80800040, 0xd0203631, 0x004d05c4, 0x00b18820 },
...
...
i965_drv_video/shaders/h264/mc/avc_mc.g4b.gen5
View file @
120cee22
...
@@ -344,7 +344,7 @@
...
@@ -344,7 +344,7 @@
{ 0x80800040, 0xd04045b1, 0x00b18840, 0x002c0744 },
{ 0x80800040, 0xd04045b1, 0x00b18840, 0x002c0744 },
{ 0x80800040, 0xd06045b1, 0x00b18860, 0x002c0746 },
{ 0x80800040, 0xd06045b1, 0x00b18860, 0x002c0746 },
{ 0x00000001, 0x34000020, 0x000007e0, 0x00000000 },
{ 0x00000001, 0x34000020, 0x000007e0, 0x00000000 },
{ 0x0280
0
005, 0x20003da0, 0x00000708, 0x00020002 },
{ 0x0280
2
005, 0x20003da0, 0x00000708, 0x00020002 },
{ 0x02600005, 0x20003da0, 0x02000708, 0x00010001 },
{ 0x02600005, 0x20003da0, 0x02000708, 0x00010001 },
{ 0x009a0001, 0x27200169, 0x00000000, 0x80808080 },
{ 0x009a0001, 0x27200169, 0x00000000, 0x80808080 },
{ 0x00780001, 0x27400231, 0x028d0724, 0x00000000 },
{ 0x00780001, 0x27400231, 0x028d0724, 0x00000000 },
...
@@ -423,7 +423,7 @@
...
@@ -423,7 +423,7 @@
{ 0x00800040, 0x24003e2c, 0x00b10726, 0x00020002 },
{ 0x00800040, 0x24003e2c, 0x00b10726, 0x00020002 },
{ 0x00800048, 0x24003e2c, 0x00b10725, 0x00020002 },
{ 0x00800048, 0x24003e2c, 0x00b10725, 0x00020002 },
{ 0x00800048, 0x24003e2c, 0x00b10724, 0x00010001 },
{ 0x00800048, 0x24003e2c, 0x00b10724, 0x00010001 },
{ 0x00800008, 0x25e03d89, 0x002
4
0400, 0x00020002 },
{ 0x00800008, 0x25e03d89, 0x002
d
0400, 0x00020002 },
{ 0x80800040, 0xd0003531, 0x00ad05c0, 0x00b18800 },
{ 0x80800040, 0xd0003531, 0x00ad05c0, 0x00b18800 },
{ 0x80800040, 0xd0203531, 0x00ad05c2, 0x00b18820 },
{ 0x80800040, 0xd0203531, 0x00ad05c2, 0x00b18820 },
{ 0x80800040, 0xd0403531, 0x00ad05c4, 0x00b18840 },
{ 0x80800040, 0xd0403531, 0x00ad05c4, 0x00b18840 },
...
@@ -434,7 +434,7 @@
...
@@ -434,7 +434,7 @@
{ 0x00800040, 0x24003e2c, 0x00b10742, 0x00020002 },
{ 0x00800040, 0x24003e2c, 0x00b10742, 0x00020002 },
{ 0x00800048, 0x24003e2c, 0x00b10741, 0x00020002 },
{ 0x00800048, 0x24003e2c, 0x00b10741, 0x00020002 },
{ 0x00800048, 0x24003e2c, 0x00b10740, 0x00010001 },
{ 0x00800048, 0x24003e2c, 0x00b10740, 0x00010001 },
{ 0x00800008, 0x25e03d89, 0x002
4
0400, 0x00020002 },
{ 0x00800008, 0x25e03d89, 0x002
d
0400, 0x00020002 },
{ 0x00800001, 0x45c10231, 0x00d205e0, 0x00000000 },
{ 0x00800001, 0x45c10231, 0x00d205e0, 0x00000000 },
{ 0x80800040, 0xd0003631, 0x004d05c0, 0x00b18800 },
{ 0x80800040, 0xd0003631, 0x004d05c0, 0x00b18800 },
{ 0x80800040, 0xd0203631, 0x004d05c4, 0x00b18820 },
{ 0x80800040, 0xd0203631, 0x004d05c4, 0x00b18820 },
...
...
i965_drv_video/shaders/h264/mc/intra_Pred_8x8_Y.asm
View file @
120cee22
...
@@ -210,7 +210,7 @@ INTRA_8X8_VERT_LEFT:
...
@@ -210,7 +210,7 @@ INTRA_8X8_VERT_LEFT:
add
(
16
)
acc0
<
1
>
:
w
REF_TOP
(
0
,
2
)
REGION
(
16
,
1
)
2
:
w
//
p
[
x
+
2
]
+
2
add
(
16
)
acc0
<
1
>
:
w
REF_TOP
(
0
,
2
)
REGION
(
16
,
1
)
2
:
w
//
p
[
x
+
2
]
+
2
mac
(
16
)
acc0
<
1
>
:
w
REF_TOP
(
0
,
1
)
REGION
(
16
,
1
)
2
:
w
//
2
*
p
[
x
+
1
]
+
p
[
x
+
2
]
+
2
mac
(
16
)
acc0
<
1
>
:
w
REF_TOP
(
0
,
1
)
REGION
(
16
,
1
)
2
:
w
//
2
*
p
[
x
+
1
]
+
p
[
x
+
2
]
+
2
mac
(
16
)
acc0
<
1
>
:
w
REF_TOP
(
0
)
REGION
(
16
,
1
)
1
:
w
//
p
[
x
]
+
2
*
p
[
x
+
1
]
+
p
[
x
+
2
]
+
2
mac
(
16
)
acc0
<
1
>
:
w
REF_TOP
(
0
)
REGION
(
16
,
1
)
1
:
w
//
p
[
x
]
+
2
*
p
[
x
+
1
]
+
p
[
x
+
2
]
+
2
shr
(
16
)
PRED_YW
(
15
)
<
1
>
acc0
<
1
>
:
w
2
:
w
//
(
p
[
x
]
+
2
*
p
[
x
+
1
]
+
p
[
x
+
2
]
+
2
)
>>
2
shr
(
16
)
PRED_YW
(
15
)
<
1
>
acc0
<
1
;8,1
>:w 2:w // (p[x]+2*p[x+1]+p[x+2]+2)>>2
//
Add
error
bl
ock
//
Add
error
bl
ock
$for
(
0
,
0
; <4; 1,32) {
$for
(
0
,
0
; <4; 1,32) {
...
@@ -229,7 +229,7 @@ INTRA_8X8_HOR_UP:
...
@@ -229,7 +229,7 @@ INTRA_8X8_HOR_UP:
add
(
16
)
acc0
<
1
>
:
w
REF_LEFT
(
0
,
2
)
REGION
(
16
,
1
)
2
:
w
//
p
[
y
+
2
]
+
2
add
(
16
)
acc0
<
1
>
:
w
REF_LEFT
(
0
,
2
)
REGION
(
16
,
1
)
2
:
w
//
p
[
y
+
2
]
+
2
mac
(
16
)
acc0
<
1
>
:
w
REF_LEFT
(
0
,
1
)
REGION
(
16
,
1
)
2
:
w
//
2
*
p
[
y
+
1
]
+
p
[
y
+
2
]
+
2
mac
(
16
)
acc0
<
1
>
:
w
REF_LEFT
(
0
,
1
)
REGION
(
16
,
1
)
2
:
w
//
2
*
p
[
y
+
1
]
+
p
[
y
+
2
]
+
2
mac
(
16
)
acc0
<
1
>
:
w
REF_LEFT
(
0
)
REGION
(
16
,
1
)
1
:
w
//
p
[
y
]
+
2
*
p
[
y
+
1
]
+
p
[
y
+
2
]
+
2
mac
(
16
)
acc0
<
1
>
:
w
REF_LEFT
(
0
)
REGION
(
16
,
1
)
1
:
w
//
p
[
y
]
+
2
*
p
[
y
+
1
]
+
p
[
y
+
2
]
+
2
shr
(
16
)
PRED_YW
(
15
)
<
1
>
acc0
<
1
>
:
w
2
:
w
//
(
p
[
y
]
+
2
*
p
[
y
+
1
]
+
p
[
y
+
2
]
+
2
)
>>
2
shr
(
16
)
PRED_YW
(
15
)
<
1
>
acc0
<
1
;8,1
>:w 2:w // (p[y]+2*p[y+1]+p[y+2]+2)>>2
//
Merge
even
/
odd
pixels
//
Merge
even
/
odd
pixels
//
The
predicted
data
need
to
be
stored
in
byte
type
(
22
byte
s
are
required
)
//
The
predicted
data
need
to
be
stored
in
byte
type
(
22
byte
s
are
required
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment