2 * Copyright 2009 Corbin Simpson <MostAwesomeDude@gmail.com>
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * on the rights to use, copy, modify, merge, publish, distribute, sub
8 * license, and/or sell copies of the Software, and to permit persons to whom
9 * the Software is furnished to do so, subject to the following conditions:
11 * The above copyright notice and this permission notice (including the next
12 * paragraph) shall be included in all copies or substantial portions of the
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
18 * THE AUTHOR(S) AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,
19 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
20 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
21 * USE OR OTHER DEALINGS IN THE SOFTWARE. */
30 static char* r5xx_fs_swiz
[] = {
41 static char* r5xx_fs_op_rgb
[] = {
57 static char* r5xx_fs_op_alpha
[] = {
76 static char* r5xx_fs_mask
[] = {
95 static char* r5xx_fs_tex
[] = {
105 static char* r300_vs_ve_ops
[] = {
106 /* R300 vector ops */
112 " VE_DISTANCE_FACTOR",
116 "VE_SET_GREATER_THAN_EQUAL",
118 " VE_MULTIPLYX2_ADD",
119 " VE_MULTIPLY_CLAMP",
121 " VE_FLT2FIX_DX_RND",
122 /* R500 vector ops */
123 " VE_PRED_SET_EQ_PUSH",
124 " VE_PRED_SET_GT_PUSH",
125 " VE_PRED_SET_GTE_PUSH",
126 " VE_PRED_SET_NEQ_PUSH",
129 " VE_COND_WRITE_GTE",
130 " VE_COND_WRITE_NEQ",
131 " VE_SET_GREATER_THAN",
139 static char* r300_vs_me_ops
[] = {
145 " ME_LIGHT_COEFF_DX",
152 " ME_EXP_BASE2_FULL_DX",
153 " ME_LOG_BASE2_FULL_DX",
154 " ME_POWER_FUNC_FF_CLAMP_B",
155 "ME_POWER_FUNC_FF_CLAMP_B1",
156 "ME_POWER_FUNC_FF_CLAMP_01",
160 " ME_LOG_BASE2_IEEE",
162 " ME_RECIP_SQRT_IEEE",
170 " ME_PRED_SET_RESTORE",
176 /* XXX refactor to avoid clashing symbols */
177 static char* r300_vs_src_debug
[] = {
184 static char* r300_vs_dst_debug
[] = {
195 static char* r300_vs_swiz_debug
[] = {
206 void r5xx_fs_dump(struct r5xx_fragment_shader
* fs
);
207 void r3xx_dump_fs(struct r3xx_fragment_shader
* fs
);
209 void r300_vs_dump(struct r300_vertex_shader
* vs
);
211 #endif /* R300_DEBUG_H */