summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2006-08-02 17:47:55 -0700
committerEric Anholt <anholt@FreeBSD.org>2006-08-02 17:47:55 -0700
commit524460ea1f02bb6e8e2239d7763334666012cec4 (patch)
tree3defe0950d09a87077d30935e5e378c4f369bfe0
parentba896c779c697e1d7458028798ec49013bd9da9f (diff)
Updated WM kernel to load video and do colorspace conversion.
-rw-r--r--src/wm_prog.h177
1 files changed, 145 insertions, 32 deletions
diff --git a/src/wm_prog.h b/src/wm_prog.h
index 9fe775c8..0d0c36af 100644
--- a/src/wm_prog.h
+++ b/src/wm_prog.h
@@ -1,36 +1,148 @@
/* wm_program */
-/* mov (8) g2<1>F g1.8<0,1,0>UW { align1 + } */
- { 0x00600001, 0x2040013d, 0x00000028, 0x00000000 },
-/* add (8) g2<1>F g2<8,8,1>F g1<0,1,0>F { align1 + } */
- { 0x00600040, 0x204077bd, 0x008d0040, 0x00004020 },
-/* mul (8) g2<1>F g2<8,8,1>F g10<0,1,0>F { align1 + } */
- { 0x00600041, 0x204077bd, 0x008d0040, 0x00000140 },
-/* add (8) g2<1>F g2<8,8,1>F g12<0,1,0>F { align1 + } */
- { 0x00600040, 0x204077bd, 0x008d0040, 0x00000180 },
-/* mov (8) g3<1>F g1.10<0,1,0>UW { align1 + } */
- { 0x00600001, 0x2060013d, 0x0000002a, 0x00000000 },
-/* add (8) g3<1>F g3<8,8,1>F g1.4<0,1,0>F { align1 + } */
- { 0x00600040, 0x206077bd, 0x008d0060, 0x00004024 },
-/* mul (8) g3<1>F g3<8,8,1>F g11<0,1,0>F { align1 + } */
- { 0x00600041, 0x206077bd, 0x008d0060, 0x00000160 },
-/* add (8) g3<1>F g3<8,8,1>F g12.4<0,1,0>F { align1 + } */
- { 0x00600040, 0x206077bd, 0x008d0060, 0x00000184 },
-/* mov (8) m2<1>F g2<8,8,1>F { align1 + } */
- { 0x00600001, 0x204003be, 0x008d0040, 0x00000000 },
-/* mov (8) m3<1>F g3<8,8,1>F { align1 + } */
- { 0x00600001, 0x206003be, 0x008d0060, 0x00000000 },
-/* mov (8) m4<1>F 0{ align1 + } */
- { 0x00600001, 0x208073fe, 0x00000000, 0x00000000 },
-/* mov (8) m5<1>F 1{ align1 + } */
- { 0x00600001, 0x20a073fe, 0x00000000, 0x3f800000 },
-/* mov (8) m6<1>F g2<8,8,1>F { align1 + } */
- { 0x00600001, 0x20c003be, 0x008d0040, 0x00000000 },
-/* mov (8) m7<1>F g3<8,8,1>F { align1 + } */
- { 0x00600001, 0x20e003be, 0x008d0060, 0x00000000 },
-/* mov (8) m8<1>F 0{ align1 + } */
- { 0x00600001, 0x210073fe, 0x00000000, 0x00000000 },
-/* mov (8) m9<1>F 1{ align1 + } */
- { 0x00600001, 0x212073fe, 0x00000000, 0x3f800000 },
+/* mov (1) g4<1>F g1.8<0,1,0>UW { align1 + } */
+ { 0x00000001, 0x2080013d, 0x00000028, 0x00000000 },
+/* add (1) g4.4<1>F g1.8<0,1,0>UW 1 { align1 + } */
+ { 0x00000040, 0x20840d3d, 0x00000028, 0x00000001 },
+/* mov (1) g4.8<1>F g1.8<0,1,0>UW { align1 + } */
+ { 0x00000001, 0x2088013d, 0x00000028, 0x00000000 },
+/* add (1) g4.12<1>F g1.8<0,1,0>UW 1 { align1 + } */
+ { 0x00000040, 0x208c0d3d, 0x00000028, 0x00000001 },
+/* mov (1) g6<1>F g1.10<0,1,0>UW { align1 + } */
+ { 0x00000001, 0x20c0013d, 0x0000002a, 0x00000000 },
+/* mov (1) g6.4<1>F g1.10<0,1,0>UW { align1 + } */
+ { 0x00000001, 0x20c4013d, 0x0000002a, 0x00000000 },
+/* add (1) g6.8<1>F g1.10<0,1,0>UW 1 { align1 + } */
+ { 0x00000040, 0x20c80d3d, 0x0000002a, 0x00000001 },
+/* add (1) g6.12<1>F g1.10<0,1,0>UW 1 { align1 + } */
+ { 0x00000040, 0x20cc0d3d, 0x0000002a, 0x00000001 },
+/* mov (1) g4.16<1>F g1.12<0,1,0>UW { align1 + } */
+ { 0x00000001, 0x2090013d, 0x0000002c, 0x00000000 },
+/* add (1) g4.20<1>F g1.12<0,1,0>UW 1 { align1 + } */
+ { 0x00000040, 0x20940d3d, 0x0000002c, 0x00000001 },
+/* mov (1) g4.24<1>F g1.12<0,1,0>UW { align1 + } */
+ { 0x00000001, 0x2098013d, 0x0000002c, 0x00000000 },
+/* add (1) g4.28<1>F g1.12<0,1,0>UW 1 { align1 + } */
+ { 0x00000040, 0x209c0d3d, 0x0000002c, 0x00000001 },
+/* mov (1) g6.16<1>F g1.14<0,1,0>UW { align1 + } */
+ { 0x00000001, 0x20d0013d, 0x0000002e, 0x00000000 },
+/* mov (1) g6.20<1>F g1.14<0,1,0>UW { align1 + } */
+ { 0x00000001, 0x20d4013d, 0x0000002e, 0x00000000 },
+/* add (1) g6.24<1>F g1.14<0,1,0>UW 1 { align1 + } */
+ { 0x00000040, 0x20d80d3d, 0x0000002e, 0x00000001 },
+/* add (1) g6.28<1>F g1.14<0,1,0>UW 1 { align1 + } */
+ { 0x00000040, 0x20dc0d3d, 0x0000002e, 0x00000001 },
+/* mov (1) g5<1>F g1.16<0,1,0>UW { align1 + } */
+ { 0x00000001, 0x20a0013d, 0x00000030, 0x00000000 },
+/* add (1) g5.4<1>F g1.16<0,1,0>UW 1 { align1 + } */
+ { 0x00000040, 0x20a40d3d, 0x00000030, 0x00000001 },
+/* mov (1) g5.8<1>F g1.16<0,1,0>UW { align1 + } */
+ { 0x00000001, 0x20a8013d, 0x00000030, 0x00000000 },
+/* add (1) g5.12<1>F g1.16<0,1,0>UW 1 { align1 + } */
+ { 0x00000040, 0x20ac0d3d, 0x00000030, 0x00000001 },
+/* mov (1) g7<1>F g1.18<0,1,0>UW { align1 + } */
+ { 0x00000001, 0x20e0013d, 0x00000032, 0x00000000 },
+/* mov (1) g7.4<1>F g1.18<0,1,0>UW { align1 + } */
+ { 0x00000001, 0x20e4013d, 0x00000032, 0x00000000 },
+/* add (1) g7.8<1>F g1.18<0,1,0>UW 1 { align1 + } */
+ { 0x00000040, 0x20e80d3d, 0x00000032, 0x00000001 },
+/* add (1) g7.12<1>F g1.18<0,1,0>UW 1 { align1 + } */
+ { 0x00000040, 0x20ec0d3d, 0x00000032, 0x00000001 },
+/* mov (1) g5.16<1>F g1.20<0,1,0>UW { align1 + } */
+ { 0x00000001, 0x20b0013d, 0x00000034, 0x00000000 },
+/* add (1) g5.20<1>F g1.20<0,1,0>UW 1 { align1 + } */
+ { 0x00000040, 0x20b40d3d, 0x00000034, 0x00000001 },
+/* mov (1) g5.24<1>F g1.20<0,1,0>UW { align1 + } */
+ { 0x00000001, 0x20b8013d, 0x00000034, 0x00000000 },
+/* add (1) g5.28<1>F g1.20<0,1,0>UW 1 { align1 + } */
+ { 0x00000040, 0x20bc0d3d, 0x00000034, 0x00000001 },
+/* mov (1) g7.16<1>F g1.22<0,1,0>UW { align1 + } */
+ { 0x00000001, 0x20f0013d, 0x00000036, 0x00000000 },
+/* mov (1) g7.20<1>F g1.22<0,1,0>UW { align1 + } */
+ { 0x00000001, 0x20f4013d, 0x00000036, 0x00000000 },
+/* add (1) g7.24<1>F g1.22<0,1,0>UW 1 { align1 + } */
+ { 0x00000040, 0x20f80d3d, 0x00000036, 0x00000001 },
+/* add (1) g7.28<1>F g1.22<0,1,0>UW 1 { align1 + } */
+ { 0x00000040, 0x20fc0d3d, 0x00000036, 0x00000001 },
+/* add (8) g4<1>F g4<8,8,1>F g1<0,1,0>F { align1 + } */
+ { 0x00600040, 0x208077bd, 0x008d0080, 0x00004020 },
+/* add (8) g5<1>F g5<8,8,1>F g1<0,1,0>F { align1 + } */
+ { 0x00600040, 0x20a077bd, 0x008d00a0, 0x00004020 },
+/* mul (8) g4<1>F g4<8,8,1>F g3<0,1,0>F { align1 + } */
+ { 0x00600041, 0x208077bd, 0x008d0080, 0x00000060 },
+/* mul (8) g5<1>F g5<8,8,1>F g3<0,1,0>F { align1 + } */
+ { 0x00600041, 0x20a077bd, 0x008d00a0, 0x00000060 },
+/* add (8) g4<1>F g4<8,8,1>F g3.12<0,1,0>F { align1 + } */
+ { 0x00600040, 0x208077bd, 0x008d0080, 0x0000006c },
+/* add (8) g5<1>F g5<8,8,1>F g3.12<0,1,0>F { align1 + } */
+ { 0x00600040, 0x20a077bd, 0x008d00a0, 0x0000006c },
+/* add (8) g6<1>F g6<8,8,1>F g1.4<0,1,0>F { align1 + } */
+ { 0x00600040, 0x20c077bd, 0x008d00c0, 0x00004024 },
+/* add (8) g7<1>F g7<8,8,1>F g1.4<0,1,0>F { align1 + } */
+ { 0x00600040, 0x20e077bd, 0x008d00e0, 0x00004024 },
+/* mul (8) g6<1>F g6<8,8,1>F g3.20<0,1,0>F { align1 + } */
+ { 0x00600041, 0x20c077bd, 0x008d00c0, 0x00000074 },
+/* mul (8) g7<1>F g7<8,8,1>F g3.20<0,1,0>F { align1 + } */
+ { 0x00600041, 0x20e077bd, 0x008d00e0, 0x00000074 },
+/* add (8) g6<1>F g6<8,8,1>F g3.28<0,1,0>F { align1 + } */
+ { 0x00600040, 0x20c077bd, 0x008d00c0, 0x0000007c },
+/* add (8) g7<1>F g7<8,8,1>F g3.28<0,1,0>F { align1 + } */
+ { 0x00600040, 0x20e077bd, 0x008d00e0, 0x0000007c },
+/* mov (8) m1<1>F g4<8,8,1>F { align1 + } */
+ { 0x00600001, 0x202003be, 0x008d0080, 0x00000000 },
+/* mov (8) m2<1>F g5<8,8,1>F { align1 + } */
+ { 0x00600001, 0x204003be, 0x008d00a0, 0x00000000 },
+/* mov (8) m3<1>F g6<8,8,1>F { align1 + } */
+ { 0x00600001, 0x206003be, 0x008d00c0, 0x00000000 },
+/* mov (8) m4<1>F g7<8,8,1>F { align1 + } */
+ { 0x00600001, 0x208003be, 0x008d00e0, 0x00000000 },
+/* send 0 (16) g12<1>UW g8<8,8,1>UW sampler mlen 5 rlen 8 { align1 + } */
+ { 0x00800031, 0x21801d29, 0x008d0100, 0x02580001 },
+/* mov (8) g19<1>UW g19<8,8,1>UW { align1 + } */
+ { 0x00600001, 0x22600129, 0x008d0260, 0x00000000 },
+/* add (8) g14<1>F g14<8,8,1>F -0.0627451{ align1 + } */
+ { 0x00600040, 0x21c07fbd, 0x008d01c0, 0xbd808081 },
+/* add (8) g16<1>F g16<8,8,1>F -0.501961{ align1 + } */
+ { 0x00600040, 0x22007fbd, 0x008d0200, 0xbf008081 },
+/* add (8) g12<1>F g12<8,8,1>F -0.501961{ align1 + } */
+ { 0x00600040, 0x21807fbd, 0x008d0180, 0xbf008081 },
+/* mul (8) g14<1>F g14<8,8,1>F 1.164{ align1 + } */
+ { 0x00600041, 0x21c07fbd, 0x008d01c0, 0x3f94fdf4 },
+/* mul (8) a0<1>F g16<8,8,1>F 1.596{ align1 + } */
+ { 0x00600041, 0x20007fbc, 0x008d0200, 0x3fcc49ba },
+/* mac (8) m2<1>F g14<8,8,1>F 1{ align1 + Saturate } */
+ { 0x80600048, 0x20407fbe, 0x008d01c0, 0x3f800000 },
+/* mul (8) a0<1>F g16<8,8,1>F -0.813{ align1 + } */
+ { 0x00600041, 0x20007fbc, 0x008d0200, 0xbf5020c5 },
+/* mac (8) a0<1>F g12<8,8,1>F -0.392{ align1 + } */
+ { 0x00600048, 0x20007fbc, 0x008d0180, 0xbec8b439 },
+/* mac (8) m3<1>F g14<8,8,1>F 1{ align1 + Saturate } */
+ { 0x80600048, 0x20607fbe, 0x008d01c0, 0x3f800000 },
+/* mul (8) a0<1>F g12<8,8,1>F 2.017{ align1 + } */
+ { 0x00600041, 0x20007fbc, 0x008d0180, 0x40011687 },
+/* mac (8) m4<1>F g14<8,8,1>F 1{ align1 + Saturate } */
+ { 0x80600048, 0x20807fbe, 0x008d01c0, 0x3f800000 },
+/* add (8) g15<1>F g15<8,8,1>F -0.0627451{ align1 + } */
+ { 0x00600040, 0x21e07fbd, 0x008d01e0, 0xbd808081 },
+/* add (8) g17<1>F g17<8,8,1>F -0.501961{ align1 + } */
+ { 0x00600040, 0x22207fbd, 0x008d0220, 0xbf008081 },
+/* add (8) g13<1>F g13<8,8,1>F -0.501961{ align1 + } */
+ { 0x00600040, 0x21a07fbd, 0x008d01a0, 0xbf008081 },
+/* mul (8) g15<1>F g15<8,8,1>F 1.164{ align1 + } */
+ { 0x00600041, 0x21e07fbd, 0x008d01e0, 0x3f94fdf4 },
+/* mul (8) a0<1>F g17<8,8,1>F 1.596{ align1 + } */
+ { 0x00600041, 0x20007fbc, 0x008d0220, 0x3fcc49ba },
+/* mac (8) m6<1>F g15<8,8,1>F 1{ align1 + Saturate } */
+ { 0x80600048, 0x20c07fbe, 0x008d01e0, 0x3f800000 },
+/* mul (8) a0<1>F g17<8,8,1>F -0.813{ align1 + } */
+ { 0x00600041, 0x20007fbc, 0x008d0220, 0xbf5020c5 },
+/* mac (8) a0<1>F g13<8,8,1>F -0.392{ align1 + } */
+ { 0x00600048, 0x20007fbc, 0x008d01a0, 0xbec8b439 },
+/* mac (8) m7<1>F g15<8,8,1>F 1{ align1 + Saturate } */
+ { 0x80600048, 0x20e07fbe, 0x008d01e0, 0x3f800000 },
+/* mul (8) a0<1>F g13<8,8,1>F 2.017{ align1 + } */
+ { 0x00600041, 0x20007fbc, 0x008d01a0, 0x40011687 },
+/* mac (8) m8<1>F g15<8,8,1>F 1{ align1 + Saturate } */
+ { 0x80600048, 0x21007fbe, 0x008d01e0, 0x3f800000 },
/* mov (8) m1<1>UD g1<8,8,1>UD { align1 mask_disable + } */
{ 0x00600201, 0x20200022, 0x008d0020, 0x00000000 },
/* send 0 (16) a0<1>UW g0<8,8,1>UW write mlen 10 rlen 0 EOT{ align1 + } */
@@ -51,3 +163,4 @@
{ 0x0040007e, 0x20000c21, 0x00690000, 0x00000000 },
/* nop (4) g0<1>UD { align1 + } */
{ 0x0040007e, 0x20000c21, 0x00690000, 0x00000000 },
+