1428d7b3dSmrg/* 2428d7b3dSmrg * Copyright © 2006 Intel Corporation 3428d7b3dSmrg * 4428d7b3dSmrg * Permission is hereby granted, free of charge, to any person obtaining a 5428d7b3dSmrg * copy of this software and associated documentation files (the "Software"), 6428d7b3dSmrg * to deal in the Software without restriction, including without limitation 7428d7b3dSmrg * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8428d7b3dSmrg * and/or sell copies of the Software, and to permit persons to whom the 9428d7b3dSmrg * Software is furnished to do so, subject to the following conditions: 10428d7b3dSmrg * 11428d7b3dSmrg * The above copyright notice and this permission notice (including the next 12428d7b3dSmrg * paragraph) shall be included in all copies or substantial portions of the 13428d7b3dSmrg * Software. 14428d7b3dSmrg * 15428d7b3dSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16428d7b3dSmrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17428d7b3dSmrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18428d7b3dSmrg * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19428d7b3dSmrg * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20428d7b3dSmrg * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 21428d7b3dSmrg * IN THE SOFTWARE. 22428d7b3dSmrg * 23428d7b3dSmrg * Authors: 24428d7b3dSmrg * Wang Zhenyu <zhenyu.z.wang@intel.com> 25428d7b3dSmrg * Keith Packard <keithp@keithp.com> 26428d7b3dSmrg */ 27428d7b3dSmrg 28428d7b3dSmrginclude(`exa_wm.g4i') 29428d7b3dSmrg 30428d7b3dSmrg/* 31428d7b3dSmrg * Prepare data in m2-m5 for subspan(1,0), m6-m9 for subspan(3,2), 32428d7b3dSmrg * 33428d7b3dSmrg * Note that the SIMD16 write message takes data for the first 34428d7b3dSmrg * two sub-spans followed by the data for the second two sub-spans 35428d7b3dSmrg * instead of having the two sub-spans interleaved by channel. Weird. 36428d7b3dSmrg */ 37428d7b3dSmrg 38428d7b3dSmrgmov (8) data_port_r_01<1>F src_sample_r_01<8,8,1>F { align1 }; 39428d7b3dSmrgmov (8) data_port_g_01<1>F src_sample_g_01<8,8,1>F { align1 }; 40428d7b3dSmrgmov (8) data_port_b_01<1>F src_sample_b_01<8,8,1>F { align1 }; 41428d7b3dSmrgmov (8) data_port_a_01<1>F src_sample_a_01<8,8,1>F { align1 }; 42428d7b3dSmrg 43428d7b3dSmrgmov (8) data_port_r_23<1>F src_sample_r_23<8,8,1>F { sechalf align1 }; 44428d7b3dSmrgmov (8) data_port_g_23<1>F src_sample_g_23<8,8,1>F { sechalf align1 }; 45428d7b3dSmrgmov (8) data_port_b_23<1>F src_sample_b_23<8,8,1>F { sechalf align1 }; 46428d7b3dSmrgmov (8) data_port_a_23<1>F src_sample_a_23<8,8,1>F { sechalf align1 }; 47428d7b3dSmrg 48428d7b3dSmrg/* m0, m1 are all direct passed by PS thread payload */ 49428d7b3dSmrgmov (8) data_port_msg_1<1>UD g1<8,8,1>UD { mask_disable align1 }; 50428d7b3dSmrg 51428d7b3dSmrg/* write */ 52428d7b3dSmrgsend (16) 53428d7b3dSmrg data_port_msg_0_ind 54428d7b3dSmrg acc0<1>UW 55428d7b3dSmrg g0<8,8,1>UW 56428d7b3dSmrg write ( 57428d7b3dSmrg 0, /* binding_table */ 58428d7b3dSmrg 8, /* pixel scordboard clear, msg type simd16 single source */ 59428d7b3dSmrg 4, /* render target write */ 60428d7b3dSmrg 0 /* no write commit message */ 61428d7b3dSmrg ) 62428d7b3dSmrg mlen 10 63428d7b3dSmrg rlen 0 64428d7b3dSmrg { align1 EOT }; 65428d7b3dSmrg 66428d7b3dSmrgnop; 67428d7b3dSmrgnop; 68428d7b3dSmrgnop; 69428d7b3dSmrgnop; 70428d7b3dSmrgnop; 71428d7b3dSmrgnop; 72428d7b3dSmrgnop; 73428d7b3dSmrgnop; 74428d7b3dSmrg 75