summaryrefslogtreecommitdiff
path: root/clutter-gst/shaders/YV12.pso
blob: 73fd3704fa0f839b7403ff03e46cc0cf904561bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
!!ARBfp1.0
# cgc version 2.2.0017, build date Jan 29 2010
# command line args: -profile arbfp1
# source file: YV12.cg
#vendor NVIDIA Corporation
#version 2.2.0.17
#profile arbfp1
#program YV12_main
#semantic YV12_main.IN
#var float4 IN.color : $vin.COLOR : COL0 : 0 : 1
#var float2 IN.Y : $vin.TEXCOORD0 : TEX0 : 0 : 1
#var sampler2D IN.Y_tex : TEXUNIT0 : texunit 0 : 0 : 1
#var sampler2D IN.U_tex : TEXUNIT2 : texunit 2 : 0 : 1
#var sampler2D IN.V_tex : TEXUNIT1 : texunit 1 : 0 : 1
#var float4 YV12_main.color : $vout.COLOR : COL : -1 : 1
#const c[0] = 1.1640625 0.0625 2.015625 0.5
#const c[1] = 0.390625 0.8125 1.5976562
PARAM c[2] = { { 1.1640625, 0.0625, 2.015625, 0.5 },
		{ 0.390625, 0.8125, 1.5976562 } };
TEMP R0;
TEMP R1;
TEX R1.y, fragment.texcoord[0], texture[0], 2D;
ADD R0.x, R1.y, -c[0].y;
TEX R0.y, fragment.texcoord[0], texture[1], 2D;
TEX R1.y, fragment.texcoord[0], texture[2], 2D;
MUL R0.x, R0, c[0];
ADD R0.w, R1.y, -c[0];
MAD R0.z, R0.w, c[0], R0.x;
ADD R0.y, R0, -c[0].w;
MAD R0.w, -R0, c[1].x, R0.x;
MAD R0.x, R0.y, c[1].z, R0;
MAD R0.y, -R0, c[1], R0.w;
MUL result.color.xyz, fragment.color.primary.w, R0;
MOV result.color.w, fragment.color.primary;
END
# 13 instructions, 2 R-regs