103b705cfSriastradh/*
203b705cfSriastradh * Copyright © 2006 Intel Corporation
303b705cfSriastradh *
403b705cfSriastradh * Permission is hereby granted, free of charge, to any person obtaining a
503b705cfSriastradh * copy of this software and associated documentation files (the "Software"),
603b705cfSriastradh * to deal in the Software without restriction, including without limitation
703b705cfSriastradh * the rights to use, copy, modify, merge, publish, distribute, sublicense,
803b705cfSriastradh * and/or sell copies of the Software, and to permit persons to whom the
903b705cfSriastradh * Software is furnished to do so, subject to the following conditions:
1003b705cfSriastradh *
1103b705cfSriastradh * The above copyright notice and this permission notice (including the next
1203b705cfSriastradh * paragraph) shall be included in all copies or substantial portions of the
1303b705cfSriastradh * Software.
1403b705cfSriastradh *
1503b705cfSriastradh * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1603b705cfSriastradh * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1703b705cfSriastradh * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
1803b705cfSriastradh * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1903b705cfSriastradh * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
2003b705cfSriastradh * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
2103b705cfSriastradh * IN THE SOFTWARE.
2203b705cfSriastradh *
2303b705cfSriastradh * Authors:
2403b705cfSriastradh *    Wang Zhenyu <zhenyu.z.wang@intel.com>
2503b705cfSriastradh *    Keith Packard <keithp@keithp.com>
2603b705cfSriastradh */
2703b705cfSriastradh
2803b705cfSriastradhinclude(`exa_wm.g4i')
2903b705cfSriastradh
3003b705cfSriastradh/*
3103b705cfSriastradh * Prepare data in m2-m5 for subspan(1,0), m6-m9 for subspan(3,2),
3203b705cfSriastradh *
3303b705cfSriastradh * Note that the SIMD16 write message takes data for the first
3403b705cfSriastradh * two sub-spans followed by the data for the second two sub-spans
3503b705cfSriastradh * instead of having the two sub-spans interleaved by channel. Weird.
3603b705cfSriastradh */
3703b705cfSriastradh
3803b705cfSriastradhmov (8) data_port_r_01<1>F	src_sample_r_01<8,8,1>F { align1 };
3903b705cfSriastradhmov (8) data_port_g_01<1>F	src_sample_g_01<8,8,1>F { align1 };
4003b705cfSriastradhmov (8) data_port_b_01<1>F	src_sample_b_01<8,8,1>F { align1 };
4103b705cfSriastradhmov (8) data_port_a_01<1>F	src_sample_a_01<8,8,1>F { align1 };
4203b705cfSriastradh
4303b705cfSriastradhmov (8) data_port_r_23<1>F	src_sample_r_23<8,8,1>F { sechalf align1 };
4403b705cfSriastradhmov (8) data_port_g_23<1>F	src_sample_g_23<8,8,1>F { sechalf align1 };
4503b705cfSriastradhmov (8) data_port_b_23<1>F	src_sample_b_23<8,8,1>F { sechalf align1 };
4603b705cfSriastradhmov (8) data_port_a_23<1>F 	src_sample_a_23<8,8,1>F { sechalf align1 };
4703b705cfSriastradh
4803b705cfSriastradh/* m0, m1 are all direct passed by PS thread payload */
4903b705cfSriastradhmov (8) data_port_msg_1<1>UD	g1<8,8,1>UD		{ mask_disable align1 };
5003b705cfSriastradh
5103b705cfSriastradh/* write */
5203b705cfSriastradhsend (16) 
5303b705cfSriastradh	data_port_msg_0_ind 
5403b705cfSriastradh	acc0<1>UW 
5503b705cfSriastradh	g0<8,8,1>UW 
5603b705cfSriastradh	write (
5703b705cfSriastradh	       0,  /* binding_table */
5803b705cfSriastradh	       8,  /* pixel scordboard clear, msg type simd16 single source */
5903b705cfSriastradh	       4,  /* render target write */
6003b705cfSriastradh	       0   /* no write commit message */
6103b705cfSriastradh	) 
6203b705cfSriastradh	mlen 10
6303b705cfSriastradh	rlen 0
6403b705cfSriastradh	{ align1 EOT };
6503b705cfSriastradh
6603b705cfSriastradhnop;
6703b705cfSriastradhnop;
6803b705cfSriastradhnop;
6903b705cfSriastradhnop;
7003b705cfSriastradhnop;
7103b705cfSriastradhnop;
7203b705cfSriastradhnop;
7303b705cfSriastradhnop;
7403b705cfSriastradh
75