summaryrefslogtreecommitdiff
path: root/i965_drv_video/shaders/h264/mc/roundShift_C_4x4.asm
blob: c6091590ff94d139f75402246473cb4ef67951a0 (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
/*
 * Copyright © <2010>, Intel Corporation.
 *
 * This program is licensed under the terms and conditions of the
 * Eclipse Public License (EPL), version 1.0.  The full text of the EPL is at
 * http://www.opensource.org/licenses/eclipse-1.0.php.
 *
 */
//	Kernel name: RoundShift_C_4x4.asm
//
//	Do (...+32)>>6 to 4x4 (NV12 8x4) interpolated chrominance data
//


//#if !defined(__RoundShift_C_4x4__)		// Make sure this is only included once
//#define __RoundShift_C_4x4__


	// TODO: Optimize using instruction compression
	add (16)	acc0<1>:w					r[pRESULT,0]<16;16,1>:w			32:w
	add (16)	acc1<1>:w					r[pRESULT,nGRFWIB]<16;16,1>:w	32:w
	asr.sat (16) r[pRESULT,0]<2>:ub			acc0<16;16,1>:w					6:w
	asr.sat (16) r[pRESULT,nGRFWIB]<2>:ub	acc1<16;16,1>:w					6:w
	

//#endif	// !defined(__RoundShift_C_4x4__)