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
4054d2e6
Commit
4054d2e6
authored
Nov 18, 2009
by
Gwenole Beauchesne
Committed by
Xiang, Haihao
Nov 18, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix rendering of RGBA subpicture
parent
85f37a2c
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
78 deletions
+16
-78
i965_drv_video/i965_render.c
i965_drv_video/i965_render.c
+2
-2
i965_drv_video/shaders/render/Makefile.am
i965_drv_video/shaders/render/Makefile.am
+3
-3
i965_drv_video/shaders/render/exa_wm_blend_subpicture.g4b
i965_drv_video/shaders/render/exa_wm_blend_subpicture.g4b
+0
-15
i965_drv_video/shaders/render/exa_wm_blend_subpicture.g4b.gen5
...drv_video/shaders/render/exa_wm_blend_subpicture.g4b.gen5
+0
-15
i965_drv_video/shaders/render/exa_wm_src_sample_argb.g4a
i965_drv_video/shaders/render/exa_wm_src_sample_argb.g4a
+7
-43
i965_drv_video/shaders/render/exa_wm_src_sample_argb.g4b
i965_drv_video/shaders/render/exa_wm_src_sample_argb.g4b
+2
-0
i965_drv_video/shaders/render/exa_wm_src_sample_argb.g4b.gen5
..._drv_video/shaders/render/exa_wm_src_sample_argb.g4b.gen5
+2
-0
No files found.
i965_drv_video/i965_render.c
View file @
4054d2e6
...
@@ -70,7 +70,7 @@ static const unsigned int ps_subpic_kernel_static[][4] =
...
@@ -70,7 +70,7 @@ static const unsigned int ps_subpic_kernel_static[][4] =
{
{
#include "shaders/render/exa_wm_xy.g4b"
#include "shaders/render/exa_wm_xy.g4b"
#include "shaders/render/exa_wm_src_affine.g4b"
#include "shaders/render/exa_wm_src_affine.g4b"
#include "shaders/render/exa_wm_
blend_subpicture
.g4b"
#include "shaders/render/exa_wm_
src_sample_argb
.g4b"
#include "shaders/render/exa_wm_write.g4b"
#include "shaders/render/exa_wm_write.g4b"
};
};
...
@@ -92,7 +92,7 @@ static const unsigned int ps_subpic_kernel_static_gen5[][4] =
...
@@ -92,7 +92,7 @@ static const unsigned int ps_subpic_kernel_static_gen5[][4] =
{
{
#include "shaders/render/exa_wm_xy.g4b.gen5"
#include "shaders/render/exa_wm_xy.g4b.gen5"
#include "shaders/render/exa_wm_src_affine.g4b.gen5"
#include "shaders/render/exa_wm_src_affine.g4b.gen5"
#include "shaders/render/exa_wm_
blend_subpicture
.g4b.gen5"
#include "shaders/render/exa_wm_
src_sample_argb
.g4b.gen5"
#include "shaders/render/exa_wm_write.g4b.gen5"
#include "shaders/render/exa_wm_write.g4b.gen5"
};
};
...
...
i965_drv_video/shaders/render/Makefile.am
View file @
4054d2e6
...
@@ -7,27 +7,27 @@ INTEL_G4A = \
...
@@ -7,27 +7,27 @@ INTEL_G4A = \
exa_sf.g4a
\
exa_sf.g4a
\
exa_wm_xy.g4a
\
exa_wm_xy.g4a
\
exa_wm_src_affine.g4a
\
exa_wm_src_affine.g4a
\
exa_wm_src_sample_argb.g4a
\
exa_wm_src_sample_planar.g4a
\
exa_wm_src_sample_planar.g4a
\
exa_wm_yuv_rgb.g4a
\
exa_wm_yuv_rgb.g4a
\
exa_wm_blend_subpicture.g4a
\
exa_wm_write.g4a
exa_wm_write.g4a
INTEL_G4B
=
\
INTEL_G4B
=
\
exa_sf.g4b
\
exa_sf.g4b
\
exa_wm_xy.g4b
\
exa_wm_xy.g4b
\
exa_wm_src_affine.g4b
\
exa_wm_src_affine.g4b
\
exa_wm_src_sample_argb.g4b
\
exa_wm_src_sample_planar.g4b
\
exa_wm_src_sample_planar.g4b
\
exa_wm_yuv_rgb.g4b
\
exa_wm_yuv_rgb.g4b
\
exa_wm_blend_subpicture.g4b
\
exa_wm_write.g4b
exa_wm_write.g4b
INTEL_G4B_GEN5
=
\
INTEL_G4B_GEN5
=
\
exa_sf.g4b.gen5
\
exa_sf.g4b.gen5
\
exa_wm_xy.g4b.gen5
\
exa_wm_xy.g4b.gen5
\
exa_wm_src_affine.g4b.gen5
\
exa_wm_src_affine.g4b.gen5
\
exa_wm_src_sample_argb.g4b.gen5
\
exa_wm_src_sample_planar.g4b.gen5
\
exa_wm_src_sample_planar.g4b.gen5
\
exa_wm_yuv_rgb.g4b.gen5
\
exa_wm_yuv_rgb.g4b.gen5
\
exa_wm_blend_subpicture.g4b.gen5
\
exa_wm_write.g4b.gen5
exa_wm_write.g4b.gen5
EXTRA_DIST
=
$(INTEL_G4I)
\
EXTRA_DIST
=
$(INTEL_G4I)
\
...
...
i965_drv_video/shaders/render/exa_wm_blend_subpicture.g4b
deleted
100644 → 0
View file @
85f37a2c
{ 0x00000201, 0x20080061, 0x00000000, 0x0000e000 },
{ 0x01800031, 0x22001d29, 0x008d0000, 0x02520001 },
{ 0x01800031, 0x21c01d29, 0x008d0000, 0x02520201 },
{ 0x01800031, 0x22401d29, 0x008d0000, 0x02520401 },
{ 0x00600001, 0x228003bd, 0x008d01c0, 0x00000000 },
{ 0x00600001, 0x22a003bd, 0x008d01e0, 0x00000000 },
{ 0x00600040, 0x21c07fbd, 0x008d01c0, 0x3f000000 },
{ 0x00600040, 0x21e07fbd, 0x008d01e0, 0x3f000000 },
{ 0x00600040, 0x22007fbd, 0x008d0200, 0x3f000000 },
{ 0x00600040, 0x22207fbd, 0x008d0220, 0x3f000000 },
{ 0x00600040, 0x22407fbd, 0x008d0240, 0x3f000000 },
{ 0x00600040, 0x22607fbd, 0x008d0260, 0x3f000000 },
{ 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
{ 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
{ 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
i965_drv_video/shaders/render/exa_wm_blend_subpicture.g4b.gen5
deleted
100644 → 0
View file @
85f37a2c
{ 0x00000201, 0x20080061, 0x00000000, 0x0000e000 },
{ 0x01800031, 0x22001d29, 0x208d0000, 0x0a2a0001 },
{ 0x01800031, 0x21c01d29, 0x208d0000, 0x0a2a0201 },
{ 0x01800031, 0x22401d29, 0x208d0000, 0x0a2a0401 },
{ 0x00600001, 0x228003bd, 0x008d01c0, 0x00000000 },
{ 0x00600001, 0x22a003bd, 0x008d01e0, 0x00000000 },
{ 0x00600040, 0x21c07fbd, 0x008d01c0, 0x3f000000 },
{ 0x00600040, 0x21e07fbd, 0x008d01e0, 0x3f000000 },
{ 0x00600040, 0x22007fbd, 0x008d0200, 0x3f000000 },
{ 0x00600040, 0x22207fbd, 0x008d0220, 0x3f000000 },
{ 0x00600040, 0x22407fbd, 0x008d0240, 0x3f000000 },
{ 0x00600040, 0x22607fbd, 0x008d0260, 0x3f000000 },
{ 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
{ 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
{ 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
i965_drv_video/shaders/render/exa_wm_
blend_subpicture
.g4a
→
i965_drv_video/shaders/render/exa_wm_
src_sample_argb
.g4a
View file @
4054d2e6
...
@@ -25,7 +25,8 @@
...
@@ -25,7 +25,8 @@
* Keith Packard <keithp@keithp.com>
* Keith Packard <keithp@keithp.com>
*/
*/
/* Sample the src surface in planar format */
/* Sample the src surface */
include(`exa_wm.g4i')
include(`exa_wm.g4i')
/* prepare sampler read back gX register, which would be written back to output */
/* prepare sampler read back gX register, which would be written back to output */
...
@@ -33,51 +34,14 @@ include(`exa_wm.g4i')
...
@@ -33,51 +34,14 @@ include(`exa_wm.g4i')
/* use simd16 sampler, param 0 is u, param 1 is v. */
/* use simd16 sampler, param 0 is u, param 1 is v. */
/* 'payload' loading, assuming tex coord start from g4 */
/* 'payload' loading, assuming tex coord start from g4 */
/* load
r
*/
/* load
argb
*/
mov (1) g0.8<1>UD 0x0000
e
000UD { align1 mask_disable };
mov (1) g0.8<1>UD 0x0000
0
000UD { align1 mask_disable };
/* src_msg will be copied with g0, as it contains send desc */
/* src_msg will be copied with g0, as it contains send desc */
/* emit sampler 'send' cmd */
/* emit sampler 'send' cmd */
/* sample Y */
send (16) src_msg_ind /* msg reg index */
src_sample_g<1>UW /* readback */
g0<8,8,1>UW /* copy to msg start reg*/
sampler (1,0,F) /* sampler message description, (binding_table,sampler_index,datatype)*/
mlen 5 rlen 2 {align1};
/* sample U (Cr) */
send (16) src_msg_ind /* msg reg index */
src_sample_r<1>UW /* readback */
g0<8,8,1>UW /* copy to msg start reg*/
sampler (1,2,F) /* sampler message description, (binding_table,sampler_index,datatype)
/* here(src->dst) we should use src_sampler and src_surface */
mlen 5 rlen 2 { align1 }; /* required message len 5, readback len 8 */
/* sample V (Cb) */
send (16) src_msg_ind /* msg reg index */
send (16) src_msg_ind /* msg reg index */
src_sample_b<1>UW /* readback */
src_sample_b
ase
<1>UW /* readback */
g0<8,8,1>UW /* copy to msg start reg*/
g0<8,8,1>UW /* copy to msg start reg*/
sampler (1,
4
,F) /* sampler message description, (binding_table,sampler_index,datatype)
sampler (1,
0
,F) /* sampler message description, (binding_table,sampler_index,datatype)
/* here(src->dst) we should use src_sampler and src_surface */
/* here(src->dst) we should use src_sampler and src_surface */
mlen 5 rlen 2 { align1 }; /* required message len 5, readback len 8 */
mlen 5 rlen 8 { align1 }; /* required message len 5, readback len 8 */
/*extract alpha value, alpha value stores in one float with color value, because the color value is small,
we can neglect it when doing alpha blend*/
mov (8) src_sample_a<1>F g14<8,8,1>F { align1 };
mov (8) src_sample_a_23<1>F g15<8,8,1>F { align1 };
/*set subtitle color*/
add (8) g14<1>F g14<8,8,1>F 0.5F { align1 };
add (8) g15<1>F g15<8,8,1>F 0.5F { align1 };
add (8) g16<1>F g16<8,8,1>F 0.5F { align1 };
add (8) g17<1>F g17<8,8,1>F 0.5F { align1 };
add (8) g18<1>F g18<8,8,1>F 0.5F { align1 };
add (8) g19<1>F g19<8,8,1>F 0.5F { align1 };
nop;
nop;
nop;
i965_drv_video/shaders/render/exa_wm_src_sample_argb.g4b
0 → 100644
View file @
4054d2e6
{ 0x00000201, 0x20080061, 0x00000000, 0x00000000 },
{ 0x01800031, 0x21c01d29, 0x008d0000, 0x02580001 },
i965_drv_video/shaders/render/exa_wm_src_sample_argb.g4b.gen5
0 → 100644
View file @
4054d2e6
{ 0x00000201, 0x20080061, 0x00000000, 0x00000000 },
{ 0x01800031, 0x21c01d29, 0x208d0000, 0x0a8a0001 },
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