Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. /*
  2.  *  Copyright 2000-2011 Intel Corporation All Rights Reserved
  3.  *
  4.  *  Licensed under the Apache License, Version 2.0 (the "License");
  5.  *  you may not use this file except in compliance with the License.
  6.  *  You may obtain a copy of the License at
  7.  *
  8.  *      http://www.apache.org/licenses/LICENSE-2.0
  9.  *
  10.  *  Unless required by applicable law or agreed to in writing, software
  11.  *  distributed under the License is distributed on an "AS IS" BASIS,
  12.  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13.  *  See the License for the specific language governing permissions and
  14.  *  limitations under the License.
  15.  */
  16. //  198    // Total instruction count
  17. //    1    // Total kernel count
  18.  
  19.  
  20.  
  21. // Module name: common.inc
  22. //
  23. // Common header file for all Video-Processing kernels
  24. //
  25.  
  26. .default_execution_size (16)
  27. .default_register_type  :ub
  28.  
  29. .reg_count_total        128
  30. .reg_count_payload      7
  31.  
  32. //========== Common constants ==========
  33.  
  34.  
  35. //========== Macros ==========
  36.  
  37.  
  38. //Fast Jump, For more details see "Set_Layer_N.asm"
  39.  
  40.  
  41. //========== Defines ====================
  42.  
  43. //========== Static Parameters (Common To All) ==========
  44. //r1
  45.  
  46.  
  47. //r2
  48.  
  49.                                     //  e.g.            byte0   byte1  byte2
  50.                                     // YUYV               0       1      3
  51.                                     // YVYU               0       3      1
  52.  
  53. //Color Pipe (IECP) parameters
  54.  
  55.  
  56. //ByteCopy
  57.  
  58.  
  59. //r4
  60.  
  61.                                     //  e.g.              byte0           byte1           byte2
  62.                                     // YUYV                 0               1               3
  63.                                     // YVYU                 0               3               1
  64.  
  65.  
  66. //========== Inline parameters (Common To All) ===========
  67.  
  68.  
  69. //============== Binding Index Table===========
  70. //Common between DNDI and DNUV
  71.  
  72.  
  73. //================= Common Message Descriptor =====
  74. // Message descriptor for thread spawning
  75. // Message Descriptors
  76. //                = 000 0001 (min message len 1 ) 0,0000 (resp len 0   -add later)
  77. //                  0000,0000,0000
  78. //                  0001(Spawn a root thread),0001 (Root thread spawn thread)
  79. //                = 0x02000011
  80. // Thread Spawner Message Descriptor
  81.  
  82.  
  83. // Message descriptor for atomic operation add
  84. // Message Descriptors
  85. //                = 000 0110 (min message len 6 ) 0,0000 (resp len 0   -add later)
  86. //                  1(header present)001,10(typed atomic operation)0(return enabled)0(slot group, low 8 bits),0111 (AOP_Add)
  87. //                  0000,0000 (Binding table index, added later)
  88. //                = 0x02000011
  89.  
  90. // Atomic Operation Add Message Descriptor
  91.  
  92.  
  93. // Message descriptor for dataport media write
  94.         // Message Descriptors
  95.                 //                = 000 0001 (min message len 1 - add later) 00000 (resp len 0)
  96.                 //                  1 (header present 1) 0 1010 (media block write) 000000
  97.                 //                  00000000 (binding table index - set later)
  98.                 //                = 0x020A8000
  99.  
  100.  
  101. // Message Length defines
  102.  
  103.  
  104. // Response Length defines
  105.  
  106.  
  107. // Block Width and Height Size defines
  108.  
  109.  
  110. // Extended Message Descriptors
  111.  
  112.  
  113. // Common message descriptors:
  114.  
  115.  
  116. //===================== Math Function Control ===================================
  117.  
  118.  
  119. //============ Message Registers ===============
  120.                              // buf4 starts from r28
  121.  
  122.  
  123. //#define mMSGHDR_EOT  r43    // Dummy Message Register for EOT
  124.  
  125.  
  126. .declare    mubMSGPAYLOAD  Base=r30 ElementSize=1 SrcRegion=<16;16,1> Type=ub
  127. .declare    muwMSGPAYLOAD  Base=r30 ElementSize=2 SrcRegion=<16;16,1> Type=uw
  128. .declare    mudMSGPAYLOAD  Base=r30 ElementSize=4 SrcRegion=<8;8,1> Type=ud
  129. .declare    mfMSGPAYLOAD   Base=r30 ElementSize=4 SrcRegion=<8;8,1> Type=f
  130.  
  131. //=================== End of thread instruction ===========================
  132.  
  133.  
  134. //=====================Pointers Used=====================================
  135.  
  136.  
  137. //=======================================================================
  138.  
  139.  
  140. //r9-r17
  141. // Define temp space for any usages
  142.  
  143.  
  144. // Common Buffers
  145.  
  146.  
  147. // temp space for rotation
  148.  
  149. .declare fROBUF           Base=r9.0             ElementSize=4           SrcRegion=<8;8,1>                 DstRegion=<1>         Type=f
  150.  
  151. .declare udROBUF                Base=r9.0               ElementSize=4           SrcRegion=<8;8,1>                 DstRegion=<1>         Type=ud
  152.  
  153. .declare uwROBUF                Base=r9.0               ElementSize=2           SrcRegion=<16;16,1>             DstRegion=<1>           Type=uw
  154.  
  155. .declare ubROBUF                Base=r9.0               ElementSize=1           SrcRegion=<16;16,1>             DstRegion=<1>           Type=ub
  156.  
  157. .declare ub4ROBUF       Base=r9.0               ElementSize=1           SrcRegion=<32;8,4>              DstRegion=<4>           Type=ub
  158.  
  159.  
  160. // End of common.inc
  161.  
  162.  
  163. // Module name: Save_AVS_RGB.asm
  164. //
  165. // Save packed ARGB 444 frame data block of size 16x16
  166. //
  167. // To save 16x16 block (64x16 byte layout for ARGB8888) we need 4 send instructions with 16x16 in each
  168. //  -----------------
  169. //  | 0 | 1 | 2 | 3 |
  170. //  -----------------
  171. // the 4 16x16 block send has been replaced by 16 32x2 sends to get better performance
  172.  
  173.  
  174.  
  175. // Module name: Save.inc
  176.  
  177.  
  178.  
  179.  
  180. // Description: Includes all definitions explicit to Fast Composite.
  181.  
  182.  
  183.  
  184.  
  185. // End of common.inc
  186.  
  187.  
  188. //========== GRF partition ==========
  189.      // r0 header            :   r0          (1 GRF)
  190.      // Static parameters    :   r1 - r6     (6 GRFS)
  191.      // Inline parameters    :   r7 - r8     (2 GRFs)
  192.      // MSGSRC               :   r27         (1 GRF)
  193. //===================================
  194.  
  195. //Interface:
  196. //========== Static Parameters (Explicit To Fast Composite) ==========
  197. //r1
  198. //CSC Set 0
  199.  
  200.  
  201. .declare udCSC_CURBE    Base=r1.0      ElementSize=4       Type=ud
  202.  
  203. //Constant alpha
  204.  
  205.  
  206. //r2
  207.  
  208.  
  209. // Gen7 AVS WA
  210.  
  211.  
  212. // WiDi Definitions
  213.  
  214.  
  215. //Colorfill
  216.  
  217.  
  218.                                       // 0: 0-degree, 1: 90, 2: 180, 3: 270-degree, clockwise.     
  219.  
  220. .declare ubCOLOR_PIXEL_VAL      Base=r2.20      ElementSize=1       SrcRegion=<0;1,0>       DstRegion=<1>       Type=ub
  221.  
  222. //r3
  223. //Normalised Ratio of Horizontal step size with main video for all layers
  224.  
  225.  
  226.     //Normalised Ratio of Horizontal step size with main video for all layers becomes
  227.     //Normalised Horizontal step size for all layers in VP_Setup.asm
  228.  
  229.  
  230. //r4
  231. //Normalised Vertical step size for all layers
  232.  
  233.  
  234. //r5
  235. //Normalised Vertical Frame Origin for all layers
  236.  
  237.  
  238. //r6
  239. //Normalised Horizontal Frame Origin for all layers
  240.  
  241.  
  242. //========== Inline Parameters (Explicit To Fast Composite) ==========
  243.  
  244.  
  245. //Main video Step X
  246.  
  247.  
  248. //====================== Binding table (Explicit To Fast Composite)=========================================
  249.  
  250.  
  251. //Used by Interlaced Scaling Kernels
  252.  
  253.  
  254. //========== Sampler State Table Index (Explicit To Fast Composite)==========
  255. //Sampler Index for AVS/IEF messages
  256.  
  257.  
  258. //Sampler Index for SIMD16 sampler messages
  259.  
  260.  
  261. //=============================================================================
  262.  
  263. .declare fBUFFER_0      Base=r64.0       ElementSize=4       SrcRegion=<8;8,1>       DstRegion=<1>       Type=f
  264. .declare fBUFFER_1      Base=r80.0       ElementSize=4       SrcRegion=<8;8,1>       DstRegion=<1>       Type=f
  265. .declare fBUFFER_2      Base=r96.0       ElementSize=4       SrcRegion=<8;8,1>       DstRegion=<1>       Type=f
  266. .declare fBUFFER_3      Base=r112.0       ElementSize=4       SrcRegion=<8;8,1>       DstRegion=<1>       Type=f
  267. .declare fBUFFER_4      Base=r28.0       ElementSize=4       SrcRegion=<8;8,1>       DstRegion=<1>       Type=f
  268. .declare fBUFFER_5      Base=r46.0       ElementSize=4       SrcRegion=<8;8,1>       DstRegion=<1>       Type=f
  269.  
  270. .declare udBUFFER_0     Base=r64.0       ElementSize=4       SrcRegion=<8;8,1>       DstRegion=<1>       Type=ud
  271. .declare udBUFFER_1     Base=r80.0       ElementSize=4       SrcRegion=<8;8,1>       DstRegion=<1>       Type=ud
  272. .declare udBUFFER_2     Base=r96.0       ElementSize=4       SrcRegion=<8;8,1>       DstRegion=<1>       Type=ud
  273. .declare udBUFFER_3     Base=r112.0       ElementSize=4       SrcRegion=<8;8,1>       DstRegion=<1>       Type=ud
  274. .declare udBUFFER_4     Base=r28.0       ElementSize=4       SrcRegion=<8;8,1>       DstRegion=<1>       Type=ud
  275. .declare udBUFFER_5     Base=r46.0       ElementSize=4       SrcRegion=<8;8,1>       DstRegion=<1>       Type=ud
  276.  
  277. .declare uwBUFFER_0     Base=r64.0       ElementSize=2       SrcRegion=<16;16,1>     DstRegion=<1>       Type=uw
  278. .declare uwBUFFER_1     Base=r80.0       ElementSize=2       SrcRegion=<16;16,1>     DstRegion=<1>       Type=uw
  279. .declare uwBUFFER_2     Base=r96.0       ElementSize=2       SrcRegion=<16;16,1>     DstRegion=<1>       Type=uw
  280. .declare uwBUFFER_3     Base=r112.0       ElementSize=2       SrcRegion=<16;16,1>     DstRegion=<1>       Type=uw
  281. .declare uwBUFFER_4     Base=r28.0       ElementSize=2       SrcRegion=<16;16,1>     DstRegion=<1>       Type=uw
  282. .declare uwBUFFER_5     Base=r46.0       ElementSize=2       SrcRegion=<16;16,1>     DstRegion=<1>       Type=uw
  283.  
  284. .declare ubBUFFER_0     Base=r64.0       ElementSize=1       SrcRegion=<16;16,1>     DstRegion=<1>       Type=ub
  285. .declare ubBUFFER_1     Base=r80.0       ElementSize=1       SrcRegion=<16;16,1>     DstRegion=<1>       Type=ub
  286. .declare ubBUFFER_2     Base=r96.0       ElementSize=1       SrcRegion=<16;16,1>     DstRegion=<1>       Type=ub
  287. .declare ubBUFFER_3     Base=r112.0       ElementSize=1       SrcRegion=<16;16,1>     DstRegion=<1>       Type=ub
  288. .declare ubBUFFER_4     Base=r28.0       ElementSize=1       SrcRegion=<16;16,1>     DstRegion=<1>       Type=ub
  289. .declare ubBUFFER_5     Base=r46.0       ElementSize=1       SrcRegion=<16;16,1>     DstRegion=<1>       Type=ub
  290.  
  291. .declare ub4BUFFER_0    Base=r64.0       ElementSize=1       SrcRegion=<32;8,4>      DstRegion=<4>       Type=ub
  292. .declare ub4BUFFER_1    Base=r80.0       ElementSize=1       SrcRegion=<32;8,4>      DstRegion=<4>       Type=ub
  293. .declare ub4BUFFER_2    Base=r96.0       ElementSize=1       SrcRegion=<32;8,4>      DstRegion=<4>       Type=ub
  294. .declare ub4BUFFER_3    Base=r112.0       ElementSize=1       SrcRegion=<32;8,4>      DstRegion=<4>       Type=ub
  295. .declare ub4BUFFER_4    Base=r28.0       ElementSize=1       SrcRegion=<32;8,4>      DstRegion=<4>       Type=ub
  296. .declare ub4BUFFER_5    Base=r46.0       ElementSize=1       SrcRegion=<32;8,4>      DstRegion=<4>       Type=ub
  297.  
  298. //Pointer to mask reg
  299.  
  300.  
  301. //r18
  302.  
  303.  
  304. //Always keep Cannel Pointers and Offsets in same GRF, so that we can use
  305. // NODDCLR, NODDCHK flags. -rT
  306.  
  307.  
  308. .declare udCSC_COEFF_0  Base=r18.0    ElementSize=4 Type=ud       // 1 GRF
  309.  
  310. //r19
  311.  
  312.  
  313. .declare udCSC_COEFF_1  Base=r19.0    ElementSize=4 Type=ud       // 1 GRF
  314.  
  315.  
  316. //r20
  317.  
  318. .declare uwALPHA_MASK_REG_TEMP  Base=r20.0    ElementSize=2 SrcRegion=<16;16,1> Type=uw        // 1 GRF
  319.  
  320. //r21
  321.  
  322. .declare uwALPHA_MASK_REG       Base=r21.0         ElementSize=2 SrcRegion=<16;16,1> Type=uw        // 1 GRF
  323.  
  324. //r22
  325.  
  326.  
  327. //Always keep Cannel Pointers and Offsets in same GRF, so that we can use
  328. // NODDCLR, NODDCHK flags. -rT
  329.  
  330.  
  331. //Keep fORIGIN_X_NLAS, fY_OFFSET_2ND_BLOCK, fSTEP_X_NLAS, pMSGDSC_COPY, ubCONST_ALPHA_COPY as
  332. //sub registers of same GRF to enable using NODDCLR NODDCHK. -rT
  333.  
  334. //r23
  335.  
  336.  
  337. //Lumakey
  338.  
  339.  
  340. //r24
  341.  
  342.  
  343. //r25
  344.  
  345.  
  346. //r26
  347.  
  348.  
  349. //defines to generate LABELS during compile time.
  350.  
  351.  
  352. //Msg payload buffers; upto 4 full-size messages can be written
  353.  
  354.  
  355. .declare    mudMSGPAYLOAD0  Base=r29.0 ElementSize=4 SrcRegion=<8;8,1> Type=ud
  356. .declare    mudMSGPAYLOAD1  Base=r38.0 ElementSize=4 SrcRegion=<8;8,1> Type=ud
  357. .declare    mudMSGPAYLOAD2  Base=r47.0 ElementSize=4 SrcRegion=<8;8,1> Type=ud
  358. .declare    mudMSGPAYLOAD3  Base=r56.0 ElementSize=4 SrcRegion=<8;8,1> Type=ud
  359.  
  360. .declare    muwMSGPAYLOAD0  Base=r29.0 ElementSize=2 SrcRegion=<16;16,1> Type=uw
  361. .declare    muwMSGPAYLOAD1  Base=r38.0 ElementSize=2 SrcRegion=<16;16,1> Type=uw
  362. .declare    muwMSGPAYLOAD2  Base=r47.0 ElementSize=2 SrcRegion=<16;16,1> Type=uw
  363. .declare    muwMSGPAYLOAD3  Base=r56.0 ElementSize=2 SrcRegion=<16;16,1> Type=uw
  364.  
  365. .declare    mubMSGPAYLOAD0  Base=r29.0 ElementSize=1 SrcRegion=<16;16,1> Type=ub
  366. .declare    mubMSGPAYLOAD1  Base=r38.0 ElementSize=1 SrcRegion=<16;16,1> Type=ub
  367. .declare    mubMSGPAYLOAD2  Base=r47.0 ElementSize=1 SrcRegion=<16;16,1> Type=ub
  368. .declare    mubMSGPAYLOAD3  Base=r56.0 ElementSize=1 SrcRegion=<16;16,1> Type=ub
  369. .declare    mubMSGPAYLOAD4  Base=r32.0 ElementSize=1 SrcRegion=<16;16,1> Type=ub
  370. .declare    mubMSGPAYLOAD5  Base=r41.0 ElementSize=1 SrcRegion=<16;16,1> Type=ub
  371. .declare    mubMSGPAYLOAD6  Base=r50.0 ElementSize=1 SrcRegion=<16;16,1> Type=ub
  372. .declare    mubMSGPAYLOAD7  Base=r59.0 ElementSize=1 SrcRegion=<16;16,1> Type=ub
  373.  
  374.  
  375.         // the r17 register (nTEMP0) is originally defined from "Common.inc"
  376.         // instead of re-defining a nTEMP0 here, we use "SAVE_RGB" suffix for its naming
  377.  
  378.         .declare uwTemp0 Base=r17.0 ElementSize=2 Type=uw
  379.  
  380.  
  381. //_SAVE_INC_
  382.  
  383.  
  384. // At the save module we have all 8 address sub-registers available.
  385. // So we will use PING-PONG type of scheme to save the data using
  386. // pointers pBUF_CHNL_TOP_8x4 and pBUF_CHNL_BOT_8x4. This will help
  387. // reduce dependency. - rT
  388.  
  389. // channel switching based on bit 0 of uWRGB_BGR_CH_SWITCH
  390.  
  391.                         // if channel swap?
  392.                         and.nz.f0.0     null<1>:w       r2.3<0;1,0>:uw 0x01:w
  393.  
  394. //wBUFF_CHNL_PTR points to either buffer 0 or buffer 4.
  395. //Add appropriate offsets to get pointers for all buffers (1,2,3 or 5).
  396. //Offsets are zero for buffer 0 and buffer 4.
  397.         add   (4)   a0.0:uw   r22.0<4;4,1>:w          0:uw
  398.  
  399.         // pointer swap
  400.         (f0.0)  mov (1) uwTemp0<1> a0.0:uw
  401.         (f0.0)  mov (1) a0.0:uw a0.2:uw
  402.         (f0.0)  mov (1) a0.2:uw uwTemp0<0;1,0>
  403.  
  404.     shl (1) r27.0<1>:d      r7.0<0;1,0>:w            2:w                        { NoDDClr }       // H. block origin need to be quadrupled
  405.     mov (1) r27.1<1>:d      r7.1<0;1,0>:w                                       { NoDDClr, NoDDChk }    // Block origin (1st quadrant)
  406.     mov (1) r27.2<1>:ud     0x1001F:ud          { NoDDChk }       // Block width and height (32x2)
  407.  
  408.     add (4)   a0.4:uw   a0.0<4;4,1>:w          r22.8<0;2,1>:w
  409.  
  410.     mov (8) r28<1>:ud      r27<8;8,1>:ud
  411.     mov (8) r37<1>:ud      r27<8;8,1>:ud
  412.     mov (8) r46<1>:ud      r27<8;8,1>:ud
  413.     mov (8) r55<1>:ud      r27<8;8,1>:ud
  414.  
  415.     mov (8) r31<1>:ud           r27<8;8,1>:ud
  416.         mov (8) r40<1>:ud               r27<8;8,1>:ud
  417.         mov (8) r49<1>:ud               r27<8;8,1>:ud
  418.         mov (8) r58<1>:ud               r27<8;8,1>:ud
  419.  
  420.  
  421. //for BUFFER 0
  422.         add (1) r37.1<1>:d     r27.1<0;1,0>:d        2:d  
  423.         add (1) r46.0<1>:d     r27.0<0;1,0>:d       32:d  
  424.         add (1) r55.0<1>:d     r27.0<0;1,0>:d       32:d  
  425.         add (1) r55.1<1>:d     r27.1<0;1,0>:d        2:d  
  426.  
  427. // for BUFFER 1
  428.         add (1) r31.1<1>:d     r27.1<0;1,0>:d        4:d  
  429.         add (1) r40.1<1>:d     r27.1<0;1,0>:d        6:d  
  430.         add (1) r49.0<1>:d     r27.0<0;1,0>:d       32:d  
  431.         add (1) r49.1<1>:d     r27.1<0;1,0>:d        4:d  
  432.         add (1) r58.0<1>:d     r27.0<0;1,0>:d       32:d  
  433.         add (1) r58.1<1>:d     r27.1<0;1,0>:d        6:d  
  434.     // write Buf_0 to 1st quarter of four horizontal output blocks
  435.  
  436. // Please note the scattered order of NODDCLR, NODDCHK flags. Since the sub-registers
  437. // of destination reg are not updated at one place and hence even flags are scattered. -rT
  438.  
  439.     mov (8)    mubMSGPAYLOAD0(0,   0)<4>  r[a0.2,   1]<16;8,2>      { NoDDClr }
  440.     mov (8)    mubMSGPAYLOAD0(0,   1)<4>  r[a0.1,   1]<16;8,2>          { NoDDClr, NoDDChk }
  441.     mov (8)    mubMSGPAYLOAD0(0,   2)<4>  r[a0.0,   1]<16;8,2>          { NoDDClr, NoDDChk }
  442.     mov (8)    mubMSGPAYLOAD0(0,   3)<4>  r2.31:ub                                      { NoDDChk }
  443.  
  444.     mov (8)    mubMSGPAYLOAD0(1,   0)<4>  r[a0.2,   33]<16;8,2>         { NoDDClr }
  445.     mov (8)    mubMSGPAYLOAD0(1,   1)<4>  r[a0.1,   33]<16;8,2>         { NoDDClr, NoDDChk }
  446.     mov (8)    mubMSGPAYLOAD0(1,   2)<4>  r[a0.0,   33]<16;8,2>         { NoDDClr, NoDDChk }
  447.     mov (8)    mubMSGPAYLOAD0(1,   3)<4>  r2.31:ub                                      { NoDDChk }
  448.  
  449.     mov (8)    mubMSGPAYLOAD1(0,   0)<4>  r[a0.6,   1]<16;8,2>          { NoDDClr }
  450.     mov (8)    mubMSGPAYLOAD1(0,   1)<4>  r[a0.5,   1]<16;8,2>          { NoDDClr, NoDDChk }
  451.     mov (8)    mubMSGPAYLOAD1(0,   2)<4>  r[a0.4,   1]<16;8,2>          { NoDDClr, NoDDChk }
  452.     mov (8)    mubMSGPAYLOAD1(0,   3)<4>  r2.31:ub                                      { NoDDChk }
  453.  
  454.     mov (8)    mubMSGPAYLOAD1(1,   0)<4>  r[a0.6,   33]<16;8,2>         { NoDDClr }
  455.     mov (8)    mubMSGPAYLOAD1(1,   1)<4>  r[a0.5,   33]<16;8,2>         { NoDDClr, NoDDChk }
  456.     mov (8)    mubMSGPAYLOAD1(1,   2)<4>  r[a0.4,   33]<16;8,2>         { NoDDClr, NoDDChk }
  457.     mov (8)    mubMSGPAYLOAD1(1,   3)<4>  r2.31:ub                                      { NoDDChk }
  458.  
  459.     mov (8)    mubMSGPAYLOAD2(0,   0)<4>  r[a0.2,   17]<16;8,2>     { NoDDClr }
  460.     mov (8)    mubMSGPAYLOAD2(0,   1)<4>  r[a0.1,   17]<16;8,2>         { NoDDClr, NoDDChk }
  461.     mov (8)    mubMSGPAYLOAD2(0,   2)<4>  r[a0.0,   17]<16;8,2>         { NoDDClr, NoDDChk }
  462.     mov (8)    mubMSGPAYLOAD2(0,   3)<4>  r2.31:ub                                      { NoDDChk }
  463.  
  464.     mov (8)    mubMSGPAYLOAD2(1,   0)<4>  r[a0.2,   49]<16;8,2>     { NoDDClr }
  465.     mov (8)    mubMSGPAYLOAD2(1,   1)<4>  r[a0.1,   49]<16;8,2>         { NoDDClr, NoDDChk }
  466.     mov (8)    mubMSGPAYLOAD2(1,   2)<4>  r[a0.0,   49]<16;8,2>         { NoDDClr, NoDDChk }
  467.     mov (8)    mubMSGPAYLOAD2(1,   3)<4>  r2.31:ub                                      { NoDDChk }
  468.  
  469.     mov (8)    mubMSGPAYLOAD3(0,   0)<4>  r[a0.6,   17]<16;8,2>         { NoDDClr }
  470.     mov (8)    mubMSGPAYLOAD3(0,   1)<4>  r[a0.5,   17]<16;8,2>         { NoDDClr, NoDDChk }
  471.     mov (8)    mubMSGPAYLOAD3(0,   2)<4>  r[a0.4,   17]<16;8,2>         { NoDDClr, NoDDChk }
  472.     mov (8)    mubMSGPAYLOAD3(0,   3)<4>  r2.31:ub                                      { NoDDChk }
  473.  
  474.     mov (8)    mubMSGPAYLOAD3(1,   0)<4>  r[a0.6,   49]<16;8,2>         { NoDDClr }
  475.     mov (8)    mubMSGPAYLOAD3(1,   1)<4>  r[a0.5,   49]<16;8,2>         { NoDDClr, NoDDChk }
  476.     mov (8)    mubMSGPAYLOAD3(1,   2)<4>  r[a0.4,   49]<16;8,2>         { NoDDClr, NoDDChk }
  477.     mov (8)    mubMSGPAYLOAD3(1,   3)<4>  r2.31:ub                                      { NoDDChk }
  478.  
  479.     // write Buf_1 to 2nd quarter of four horizontal output blocks
  480.     add (4)   a0.0:uw   r22.0<4;4,1>:w          512:uw
  481.  
  482.         // pointer swap
  483.         (f0.0)  mov (1) uwTemp0<1> a0.0:uw
  484.         (f0.0)  mov (1) a0.0:uw a0.2:uw
  485.         (f0.0)  mov (1) a0.2:uw uwTemp0<0;1,0>
  486.  
  487.     add (4)   a0.4:uw   a0.0<4;4,1>:w         r22.8<0;2,1>:w
  488.  
  489.         mov (8)    mubMSGPAYLOAD4(0,   0)<4>  r[a0.2,   1]<16;8,2>          { NoDDClr }
  490.     mov (8)    mubMSGPAYLOAD4(0,   1)<4>  r[a0.1,   1]<16;8,2>          { NoDDClr, NoDDChk }
  491.     mov (8)    mubMSGPAYLOAD4(0,   2)<4>  r[a0.0,   1]<16;8,2>          { NoDDClr, NoDDChk }
  492.     mov (8)    mubMSGPAYLOAD4(0,   3)<4>  r2.31:ub                                      { NoDDChk }
  493.  
  494.     mov (8)    mubMSGPAYLOAD4(1,   0)<4>  r[a0.2,   33]<16;8,2>         { NoDDClr }
  495.     mov (8)    mubMSGPAYLOAD4(1,   1)<4>  r[a0.1,   33]<16;8,2>         { NoDDClr, NoDDChk }
  496.     mov (8)    mubMSGPAYLOAD4(1,   2)<4>  r[a0.0,   33]<16;8,2>         { NoDDClr, NoDDChk }
  497.     mov (8)    mubMSGPAYLOAD4(1,   3)<4>  r2.31:ub                                      { NoDDChk }
  498.  
  499.     mov (8)    mubMSGPAYLOAD5(0,   0)<4>  r[a0.6,   1]<16;8,2>          { NoDDClr }
  500.     mov (8)    mubMSGPAYLOAD5(0,   1)<4>  r[a0.5,   1]<16;8,2>          { NoDDClr, NoDDChk }
  501.     mov (8)    mubMSGPAYLOAD5(0,   2)<4>  r[a0.4,   1]<16;8,2>          { NoDDClr, NoDDChk }
  502.     mov (8)    mubMSGPAYLOAD5(0,   3)<4>  r2.31:ub                                      { NoDDChk }
  503.  
  504.     mov (8)    mubMSGPAYLOAD5(1,   0)<4>  r[a0.6,   33]<16;8,2>         { NoDDClr }
  505.     mov (8)    mubMSGPAYLOAD5(1,   1)<4>  r[a0.5,   33]<16;8,2>         { NoDDClr, NoDDChk }
  506.     mov (8)    mubMSGPAYLOAD5(1,   2)<4>  r[a0.4,   33]<16;8,2>         { NoDDClr, NoDDChk }
  507.     mov (8)    mubMSGPAYLOAD5(1,   3)<4>  r2.31:ub                                      { NoDDChk }
  508.  
  509.     mov (8)    mubMSGPAYLOAD6(0,   0)<4>  r[a0.2,   17]<16;8,2>     { NoDDClr }
  510.     mov (8)    mubMSGPAYLOAD6(0,   1)<4>  r[a0.1,   17]<16;8,2>         { NoDDClr, NoDDChk }
  511.     mov (8)    mubMSGPAYLOAD6(0,   2)<4>  r[a0.0,   17]<16;8,2>         { NoDDClr, NoDDChk }
  512.     mov (8)    mubMSGPAYLOAD6(0,   3)<4>  r2.31:ub                                      { NoDDChk }
  513.  
  514.     mov (8)    mubMSGPAYLOAD6(1,   0)<4>  r[a0.2,   49]<16;8,2>     { NoDDClr }
  515.     mov (8)    mubMSGPAYLOAD6(1,   1)<4>  r[a0.1,   49]<16;8,2>         { NoDDClr, NoDDChk }
  516.     mov (8)    mubMSGPAYLOAD6(1,   2)<4>  r[a0.0,   49]<16;8,2>         { NoDDClr, NoDDChk }
  517.     mov (8)    mubMSGPAYLOAD6(1,   3)<4>  r2.31:ub                                      { NoDDChk }
  518.  
  519.     mov (8)    mubMSGPAYLOAD7(0,   0)<4>  r[a0.6,   17]<16;8,2>         { NoDDClr }
  520.     mov (8)    mubMSGPAYLOAD7(0,   1)<4>  r[a0.5,   17]<16;8,2>         { NoDDClr, NoDDChk }
  521.     mov (8)    mubMSGPAYLOAD7(0,   2)<4>  r[a0.4,   17]<16;8,2>         { NoDDClr, NoDDChk }
  522.     mov (8)    mubMSGPAYLOAD7(0,   3)<4>  r2.31:ub                                      { NoDDChk }
  523.  
  524.     mov (8)    mubMSGPAYLOAD7(1,   0)<4>  r[a0.6,   49]<16;8,2>         { NoDDClr }
  525.     mov (8)    mubMSGPAYLOAD7(1,   1)<4>  r[a0.5,   49]<16;8,2>         { NoDDClr, NoDDChk }
  526.     mov (8)    mubMSGPAYLOAD7(1,   2)<4>  r[a0.4,   49]<16;8,2>         { NoDDClr, NoDDChk }
  527.     mov (8)    mubMSGPAYLOAD7(1,   3)<4>  r2.31:ub                                      { NoDDChk }
  528.  
  529.     // send buffer 0 and buffer 1      
  530.         send (1)    null<1>:d    r28    0x5                     0x60A8018:ud
  531.     send (1)    null<1>:d    r37        0x5                     0x60A8018:ud
  532.     send (1)    null<1>:d    r46        0x5                     0x60A8018:ud
  533.     send (1)    null<1>:d    r55        0x5                     0x60A8018:ud
  534.  
  535.         send (1)    null<1>:d    r31    0x5                     0x60A8018:ud
  536.     send (1)    null<1>:d    r40        0x5                     0x60A8018:ud
  537.     send (1)    null<1>:d    r49        0x5                     0x60A8018:ud
  538.     send (1)    null<1>:d    r58        0x5                     0x60A8018:ud
  539.  
  540. //==========
  541. //prepare headers
  542. //for BUFFER 2
  543.         add (1) r28.1<1>:d     r27.1<0;1,0>:d        8:d  
  544.         add (1) r37.1<1>:d     r27.1<0;1,0>:d       10:d  
  545.         add (1) r46.0<1>:d     r27.0<0;1,0>:d       32:d  
  546.         add (1) r46.1<1>:d     r27.1<0;1,0>:d        8:d  
  547.         add (1) r55.0<1>:d     r27.0<0;1,0>:d       32:d  
  548.         add (1) r55.1<1>:d     r27.1<0;1,0>:d       10:d  
  549. // for BUFFER 3
  550.         add (1) r31.1<1>:d     r27.1<0;1,0>:d       12:d  
  551.         add (1) r40.1<1>:d     r27.1<0;1,0>:d       14:d  
  552.         add (1) r49.0<1>:d     r27.0<0;1,0>:d       32:d  
  553.         add (1) r49.1<1>:d     r27.1<0;1,0>:d       12:d  
  554.         add (1) r58.0<1>:d     r27.0<0;1,0>:d       32:d  
  555.         add (1) r58.1<1>:d     r27.1<0;1,0>:d       14:d  
  556.  
  557. //===========
  558.  
  559.     // write Buf_2 to 3rd quarter of four horizontal output blocks
  560.     add (4)   a0.0:uw   r22.0<4;4,1>:w          1024:uw
  561.  
  562.         // pointer swap
  563.         (f0.0)  mov (1) uwTemp0<1> a0.0:uw
  564.         (f0.0)  mov (1) a0.0:uw a0.2:uw
  565.         (f0.0)  mov (1) a0.2:uw uwTemp0<0;1,0>
  566.  
  567.     add (4)   a0.4:uw   a0.0<4;4,1>:w         r22.8<0;2,1>:w
  568.  
  569.         mov (8)    mubMSGPAYLOAD0(0,   0)<4>  r[a0.2,   1]<16;8,2>          { NoDDClr }
  570.     mov (8)    mubMSGPAYLOAD0(0,   1)<4>  r[a0.1,   1]<16;8,2>          { NoDDClr, NoDDChk }
  571.     mov (8)    mubMSGPAYLOAD0(0,   2)<4>  r[a0.0,   1]<16;8,2>          { NoDDClr, NoDDChk }
  572.     mov (8)    mubMSGPAYLOAD0(0,   3)<4>  r2.31:ub                                      { NoDDChk }
  573.  
  574.     mov (8)    mubMSGPAYLOAD0(1,   0)<4>  r[a0.2,   33]<16;8,2>         { NoDDClr }
  575.     mov (8)    mubMSGPAYLOAD0(1,   1)<4>  r[a0.1,   33]<16;8,2>         { NoDDClr, NoDDChk }
  576.     mov (8)    mubMSGPAYLOAD0(1,   2)<4>  r[a0.0,   33]<16;8,2>         { NoDDClr, NoDDChk }
  577.     mov (8)    mubMSGPAYLOAD0(1,   3)<4>  r2.31:ub                                      { NoDDChk }
  578.  
  579.     mov (8)    mubMSGPAYLOAD1(0,   0)<4>  r[a0.6,   1]<16;8,2>          { NoDDClr }
  580.     mov (8)    mubMSGPAYLOAD1(0,   1)<4>  r[a0.5,   1]<16;8,2>          { NoDDClr, NoDDChk }
  581.     mov (8)    mubMSGPAYLOAD1(0,   2)<4>  r[a0.4,   1]<16;8,2>          { NoDDClr, NoDDChk }
  582.     mov (8)    mubMSGPAYLOAD1(0,   3)<4>  r2.31:ub                                      { NoDDChk }
  583.  
  584.     mov (8)    mubMSGPAYLOAD1(1,   0)<4>  r[a0.6,   33]<16;8,2>         { NoDDClr }
  585.     mov (8)    mubMSGPAYLOAD1(1,   1)<4>  r[a0.5,   33]<16;8,2>         { NoDDClr, NoDDChk }
  586.     mov (8)    mubMSGPAYLOAD1(1,   2)<4>  r[a0.4,   33]<16;8,2>         { NoDDClr, NoDDChk }
  587.     mov (8)    mubMSGPAYLOAD1(1,   3)<4>  r2.31:ub                                      { NoDDChk }
  588.  
  589.     mov (8)    mubMSGPAYLOAD2(0,   0)<4>  r[a0.2,   17]<16;8,2>     { NoDDClr }
  590.     mov (8)    mubMSGPAYLOAD2(0,   1)<4>  r[a0.1,   17]<16;8,2>         { NoDDClr, NoDDChk }
  591.     mov (8)    mubMSGPAYLOAD2(0,   2)<4>  r[a0.0,   17]<16;8,2>         { NoDDClr, NoDDChk }
  592.     mov (8)    mubMSGPAYLOAD2(0,   3)<4>  r2.31:ub                                      { NoDDChk }
  593.  
  594.     mov (8)    mubMSGPAYLOAD2(1,   0)<4>  r[a0.2,   49]<16;8,2>     { NoDDClr }
  595.     mov (8)    mubMSGPAYLOAD2(1,   1)<4>  r[a0.1,   49]<16;8,2>         { NoDDClr, NoDDChk }
  596.     mov (8)    mubMSGPAYLOAD2(1,   2)<4>  r[a0.0,   49]<16;8,2>         { NoDDClr, NoDDChk }
  597.     mov (8)    mubMSGPAYLOAD2(1,   3)<4>  r2.31:ub                                      { NoDDChk }
  598.  
  599.     mov (8)    mubMSGPAYLOAD3(0,   0)<4>  r[a0.6,   17]<16;8,2>         { NoDDClr }
  600.     mov (8)    mubMSGPAYLOAD3(0,   1)<4>  r[a0.5,   17]<16;8,2>         { NoDDClr, NoDDChk }
  601.     mov (8)    mubMSGPAYLOAD3(0,   2)<4>  r[a0.4,   17]<16;8,2>         { NoDDClr, NoDDChk }
  602.     mov (8)    mubMSGPAYLOAD3(0,   3)<4>  r2.31:ub                                      { NoDDChk }
  603.  
  604.     mov (8)    mubMSGPAYLOAD3(1,   0)<4>  r[a0.6,   49]<16;8,2>         { NoDDClr }
  605.     mov (8)    mubMSGPAYLOAD3(1,   1)<4>  r[a0.5,   49]<16;8,2>         { NoDDClr, NoDDChk }
  606.     mov (8)    mubMSGPAYLOAD3(1,   2)<4>  r[a0.4,   49]<16;8,2>         { NoDDClr, NoDDChk }
  607.     mov (8)    mubMSGPAYLOAD3(1,   3)<4>  r2.31:ub                                      { NoDDChk }
  608.  
  609.     // write Buf_3 to 4th quarter of four horizontal output blocks
  610.     add (4)   a0.0:uw   r22.0<4;4,1>:w          1536:uw
  611.  
  612.         // pointer swap
  613.         (f0.0)  mov (1) uwTemp0<1> a0.0:uw
  614.         (f0.0)  mov (1) a0.0:uw a0.2:uw
  615.         (f0.0)  mov (1) a0.2:uw uwTemp0<0;1,0>
  616.  
  617.     add (4)   a0.4:uw   a0.0<4;4,1>:w         r22.8<0;2,1>:w
  618.  
  619.         mov (8)    mubMSGPAYLOAD4(0,   0)<4>  r[a0.2,   1]<16;8,2>          { NoDDClr }
  620.     mov (8)    mubMSGPAYLOAD4(0,   1)<4>  r[a0.1,   1]<16;8,2>          { NoDDClr, NoDDChk }
  621.     mov (8)    mubMSGPAYLOAD4(0,   2)<4>  r[a0.0,   1]<16;8,2>          { NoDDClr, NoDDChk }
  622.     mov (8)    mubMSGPAYLOAD4(0,   3)<4>  r2.31:ub                                      { NoDDChk }
  623.  
  624.     mov (8)    mubMSGPAYLOAD4(1,   0)<4>  r[a0.2,   33]<16;8,2>         { NoDDClr }
  625.     mov (8)    mubMSGPAYLOAD4(1,   1)<4>  r[a0.1,   33]<16;8,2>         { NoDDClr, NoDDChk }
  626.     mov (8)    mubMSGPAYLOAD4(1,   2)<4>  r[a0.0,   33]<16;8,2>         { NoDDClr, NoDDChk }
  627.     mov (8)    mubMSGPAYLOAD4(1,   3)<4>  r2.31:ub                                      { NoDDChk }
  628.  
  629.     mov (8)    mubMSGPAYLOAD5(0,   0)<4>  r[a0.6,   1]<16;8,2>          { NoDDClr }
  630.     mov (8)    mubMSGPAYLOAD5(0,   1)<4>  r[a0.5,   1]<16;8,2>          { NoDDClr, NoDDChk }
  631.     mov (8)    mubMSGPAYLOAD5(0,   2)<4>  r[a0.4,   1]<16;8,2>          { NoDDClr, NoDDChk }
  632.     mov (8)    mubMSGPAYLOAD5(0,   3)<4>  r2.31:ub                                      { NoDDChk }
  633.  
  634.     mov (8)    mubMSGPAYLOAD5(1,   0)<4>  r[a0.6,   33]<16;8,2>         { NoDDClr }
  635.     mov (8)    mubMSGPAYLOAD5(1,   1)<4>  r[a0.5,   33]<16;8,2>         { NoDDClr, NoDDChk }
  636.     mov (8)    mubMSGPAYLOAD5(1,   2)<4>  r[a0.4,   33]<16;8,2>         { NoDDClr, NoDDChk }
  637.     mov (8)    mubMSGPAYLOAD5(1,   3)<4>  r2.31:ub                                      { NoDDChk }
  638.  
  639.     mov (8)    mubMSGPAYLOAD6(0,   0)<4>  r[a0.2,   17]<16;8,2>     { NoDDClr }
  640.     mov (8)    mubMSGPAYLOAD6(0,   1)<4>  r[a0.1,   17]<16;8,2>         { NoDDClr, NoDDChk }
  641.     mov (8)    mubMSGPAYLOAD6(0,   2)<4>  r[a0.0,   17]<16;8,2>         { NoDDClr, NoDDChk }
  642.     mov (8)    mubMSGPAYLOAD6(0,   3)<4>  r2.31:ub                                      { NoDDChk }
  643.  
  644.     mov (8)    mubMSGPAYLOAD6(1,   0)<4>  r[a0.2,   49]<16;8,2>     { NoDDClr }
  645.     mov (8)    mubMSGPAYLOAD6(1,   1)<4>  r[a0.1,   49]<16;8,2>         { NoDDClr, NoDDChk }
  646.     mov (8)    mubMSGPAYLOAD6(1,   2)<4>  r[a0.0,   49]<16;8,2>         { NoDDClr, NoDDChk }
  647.     mov (8)    mubMSGPAYLOAD6(1,   3)<4>  r2.31:ub                                      { NoDDChk }
  648.  
  649.     mov (8)    mubMSGPAYLOAD7(0,   0)<4>  r[a0.6,   17]<16;8,2>         { NoDDClr }
  650.     mov (8)    mubMSGPAYLOAD7(0,   1)<4>  r[a0.5,   17]<16;8,2>         { NoDDClr, NoDDChk }
  651.     mov (8)    mubMSGPAYLOAD7(0,   2)<4>  r[a0.4,   17]<16;8,2>         { NoDDClr, NoDDChk }
  652.     mov (8)    mubMSGPAYLOAD7(0,   3)<4>  r2.31:ub                                      { NoDDChk }
  653.  
  654.     mov (8)    mubMSGPAYLOAD7(1,   0)<4>  r[a0.6,   49]<16;8,2>         { NoDDClr }
  655.     mov (8)    mubMSGPAYLOAD7(1,   1)<4>  r[a0.5,   49]<16;8,2>         { NoDDClr, NoDDChk }
  656.     mov (8)    mubMSGPAYLOAD7(1,   2)<4>  r[a0.4,   49]<16;8,2>         { NoDDClr, NoDDChk }
  657.     mov (8)    mubMSGPAYLOAD7(1,   3)<4>  r2.31:ub                                      { NoDDChk }
  658.  
  659.     // send buffer 2 and buffer 3      
  660.         send (1)    null<1>:d    r28    0x5                     0x60A8018:ud
  661.     send (1)    null<1>:d    r37        0x5                     0x60A8018:ud
  662.     send (1)    null<1>:d    r46        0x5                     0x60A8018:ud
  663.     send (1)    null<1>:d    r55        0x5                     0x60A8018:ud
  664.  
  665.         send (1)    null<1>:d    r31    0x5                     0x60A8018:ud
  666.     send (1)    null<1>:d    r40        0x5                     0x60A8018:ud
  667.     send (1)    null<1>:d    r49        0x5                     0x60A8018:ud
  668.     send (1)    null<1>:d    r58        0x5                     0x60A8018:ud
  669.