Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. /*
  2.  * Copyright © <2010>, Intel Corporation.
  3.  *
  4.  * This program is licensed under the terms and conditions of the
  5.  * Eclipse Public License (EPL), version 1.0.  The full text of the EPL is at
  6.  * http://www.opensource.org/licenses/eclipse-1.0.php.
  7.  *
  8.  */
  9. // Module name: load_Y_16x16T.asm
  10. //
  11. // Load and transpose Y 16x16 block
  12. //
  13. //----------------------------------------------------------------
  14. //  Symbols need to be defined before including this module
  15. //
  16. //      Source region in :ud
  17. //      SRC_YD:                 SRC_YD Base=rxx ElementSize=4 SrcRegion=REGION(8,1) Type=ud                     // 8 GRFs
  18. //
  19. //      Binding table index:
  20. //      BI_SRC_Y:               Binding table index of Y surface
  21. //
  22. //----------------------------------------------------------------
  23.  
  24. #if defined(_DEBUG)
  25.         mov             (1)             EntrySignatureC:w                       0xDDD1:w
  26. #endif
  27.         // Read Y
  28.        
  29. #if defined(_PROGRESSIVE)
  30.     mov (2)     MSGSRC.0<1>:ud  ORIX_CUR<2;2,1>:w               { NoDDClr }                     // Block origin
  31.         mov (1) MSGSRC.2<1>:ud  0x000F000F:ud                   { NoDDChk }                     // Block width and height (16x16)
  32.  
  33.     //send (8) SRC_YD(0)<1>     MSGHDRC         MSGSRC<8;8,1>:ud        DWBRMSGDSC_SMPLR+0x00080000+BI_SRC_Y
  34.         mov (1) MSGDSC  RESP_LEN(8)+DWBRMSGDSC_SC+BI_SRC_Y:ud          
  35. #endif
  36.  
  37.    
  38. #if defined(_FIELD)
  39. //    cmp.z.f0.0 (1)  NULLREGW  PicTypeC:w      0:w                                             // Get pic type flag
  40.     and.nz.f0.1 (1) NULLREGW    BitFields:w     BotFieldFlag:w                  // Get bottom field flag
  41.         // they are used later in this file
  42.  
  43.     mov (2)     MSGSRC.0<1>:ud  ORIX_CUR<2;2,1>:w               { NoDDClr }                     // Block origin
  44.     mov (1)     MSGSRC.2<1>:ud  0x000F000F:ud                   { NoDDChk }                     // Block width and height (16x16)
  45.    
  46.     // Set message descriptor
  47.     // Frame picture
  48. //      (f0.0) mov (1)  MSGDSC  RESP_LEN(8)+DWBRMSGDSC_SC+BI_SRC_Y:ud                   // Read 8 GRFs from SRC_Y
  49. //      (f0.0) jmpi             load_Y_16x16T
  50.  
  51.         // Non frame picture
  52.     (f0.1) mov (1)      MSGDSC  RESP_LEN(8)+DWBRMSGDSC_SC_BF+BI_SRC_Y:ud  // Read 8 GRFs from SRC_Y bottom field
  53.     (-f0.1) mov (1)     MSGDSC  RESP_LEN(8)+DWBRMSGDSC_SC_TF+BI_SRC_Y:ud  // Read 8 GRFs from SRC_Y top field
  54.  
  55. //load_Y_16x16T:
  56.  
  57. #endif
  58.  
  59.     send (8) SRC_YD(0)<1>       MSGHDRC         MSGSRC<8;8,1>:ud        DAPREAD MSGDSC
  60.        
  61. //      #include "Transpose_Cur_Y_16x16.asm"
  62.  
  63. // End of load_Y_16x16T
  64.