2 * Load reference 16x9 area for luma 4x4 MC
\r
3 * Copyright © <2010>, Intel Corporation.
\r
5 * This program is licensed under the terms and conditions of the
\r
6 * Eclipse Public License (EPL), version 1.0. The full text of the EPL is at
\r
7 * http://www.opensource.org/licenses/eclipse-1.0.php.
\r
10 // Kernel name: LoadRef_Y_16x9.asm
\r
12 // Load reference 16x9 area for luma 4x4 MC
\r
15 //#if !defined(__LOADREF_Y_16x9__) // Make sure this is only included once
\r
16 //#define __LOADREF_Y_16x9__
\r
20 // Compute integer and fractional components of MV
\r
21 and (2) gMVX_FRAC<1>:w r[pMV,0]<2;2,1>:w 0x03:w //{NoDDClr}
\r
22 asr (2) gMVX_INT<1>:w r[pMV,0]<2;2,1>:w 0x02:w //{NoDDChk}
\r
24 // Check whether MVY is integer
\r
25 or.z.f0.1 (8) null:w gMVY_FRAC<0;1,0>:w 0:w
\r
27 // Set message descriptor
\r
28 (f0.1) add (1) pMSGDSC:ud gMSGDSC_R:ud RESP_LEN(2):ud
\r
29 (-f0.1) add (1) pMSGDSC:ud gMSGDSC_R:ud RESP_LEN(5):ud
\r
31 // Compute top-left corner position to be loaded
\r
33 (-f0.1) add (2) gMSGSRC.0<1>:d gMVX_INT<2;2,1>:w -0x02:d //{NoDDClr}
\r
34 (-f0.1) mov (1) gMSGSRC.2:ud 0x00080008:ud //{NoDDChk}
\r
35 (f0.1) add (1) gMSGSRC.0<1>:d gMVX_INT<0;1,0>:w -0x02:d //{NoDDClr}
\r
36 (f0.1) mov (1) gMSGSRC.1<1>:d gMVY_INT<0;1,0>:w //{NoDDChk,NoDDClr}
\r
37 (f0.1) mov (1) gMSGSRC.2:ud 0x00030008:ud //{NoDDChk}
\r
40 send (8) gudREF(0)<1> mMSGHDRY gMSGSRC<8;8,1>:ud DAPREAD pMSGDSC:ud
\r
44 // Compute integer and fractional components of MV
\r
45 and (2) gMVX_FRAC<1>:w r[pMV,0]<2;2,1>:w 0x03:w {NoDDClr} //
\r
46 asr (2) gMVX_INT<1>:w r[pMV,0]<2;2,1>:w 0x02:w {NoDDChk} //
\r
48 // Set message descriptor
\r
49 add (1) pMSGDSC:ud gMSGDSC_R:ud RESP_LEN(5):ud
\r
51 // Compute top-left corner position to be loaded
\r
52 add (2) gMSGSRC.0<1>:d gMVX_INT<2;2,1>:w -0x02:d {NoDDClr} //
\r
53 mov (1) gMSGSRC.2:ud 0x00080008:ud {NoDDChk} //
\r
56 send (8) gudREF(0)<1> mMSGHDRY gMSGSRC<8;8,1>:ud DAPREAD pMSGDSC:ud
\r
61 //#endif // !defined(__LOADREF_Y_16x9__)
\r