Lines Matching refs:Shader
23 PixelShader::PixelShader(const PixelShader *ps) : Shader() in PixelShader()
34 append(new sw::Shader::Instruction(*ps->getInstruction(i))); in PixelShader()
47 PixelShader::PixelShader(const unsigned long *token) : Shader() in PixelShader()
92 Shader::Opcode opcode = (Shader::Opcode)(token[i] & 0x0000FFFF); in validate()
96 case Shader::OPCODE_RESERVED0: in validate()
97 case Shader::OPCODE_MOVA: in validate()
159 if(instruction[i]->opcode == Shader::OPCODE_TEXM3X2DEPTH || in analyzeZOverride()
160 instruction[i]->opcode == Shader::OPCODE_TEXDEPTH || in analyzeZOverride()
161 instruction[i]->dst.type == Shader::PARAMETER_DEPTHOUT) in analyzeZOverride()
176 if(instruction[i]->opcode == Shader::OPCODE_TEXKILL || in analyzeKill()
177 instruction[i]->opcode == Shader::OPCODE_DISCARD) in analyzeKill()
191 semantic[0][0] = Semantic(Shader::USAGE_COLOR, 0); in analyzeInterpolants()
192 semantic[0][1] = Semantic(Shader::USAGE_COLOR, 0); in analyzeInterpolants()
193 semantic[0][2] = Semantic(Shader::USAGE_COLOR, 0); in analyzeInterpolants()
194 semantic[0][3] = Semantic(Shader::USAGE_COLOR, 0); in analyzeInterpolants()
196 semantic[1][0] = Semantic(Shader::USAGE_COLOR, 1); in analyzeInterpolants()
197 semantic[1][1] = Semantic(Shader::USAGE_COLOR, 1); in analyzeInterpolants()
198 semantic[1][2] = Semantic(Shader::USAGE_COLOR, 1); in analyzeInterpolants()
199 semantic[1][3] = Semantic(Shader::USAGE_COLOR, 1); in analyzeInterpolants()
203 semantic[2 + i][0] = Semantic(Shader::USAGE_TEXCOORD, i); in analyzeInterpolants()
204 semantic[2 + i][1] = Semantic(Shader::USAGE_TEXCOORD, i); in analyzeInterpolants()
205 semantic[2 + i][2] = Semantic(Shader::USAGE_TEXCOORD, i); in analyzeInterpolants()
206 semantic[2 + i][3] = Semantic(Shader::USAGE_TEXCOORD, i); in analyzeInterpolants()
209 Shader::SamplerType samplerType[16]; in analyzeInterpolants()
213 samplerType[i] = Shader::SAMPLER_UNKNOWN; in analyzeInterpolants()
218 if(instruction[i]->dst.type == Shader::PARAMETER_SAMPLER) in analyzeInterpolants()
230 if(instruction[i]->dst.type == Shader::PARAMETER_TEXTURE) in analyzeInterpolants()
237 case Shader::OPCODE_TEX: in analyzeInterpolants()
238 case Shader::OPCODE_TEXBEM: in analyzeInterpolants()
239 case Shader::OPCODE_TEXBEML: in analyzeInterpolants()
240 case Shader::OPCODE_TEXCOORD: in analyzeInterpolants()
241 case Shader::OPCODE_TEXDP3: in analyzeInterpolants()
242 case Shader::OPCODE_TEXDP3TEX: in analyzeInterpolants()
243 case Shader::OPCODE_TEXM3X2DEPTH: in analyzeInterpolants()
244 case Shader::OPCODE_TEXM3X2PAD: in analyzeInterpolants()
245 case Shader::OPCODE_TEXM3X2TEX: in analyzeInterpolants()
246 case Shader::OPCODE_TEXM3X3: in analyzeInterpolants()
247 case Shader::OPCODE_TEXM3X3PAD: in analyzeInterpolants()
248 case Shader::OPCODE_TEXM3X3TEX: in analyzeInterpolants()
253 case Shader::OPCODE_TEXKILL: in analyzeInterpolants()
268 case Shader::OPCODE_TEXM3X3VSPEC: in analyzeInterpolants()
276 case Shader::OPCODE_DCL: in analyzeInterpolants()
288 if(instruction[i]->src[argument].type == Shader::PARAMETER_INPUT || in analyzeInterpolants()
289 instruction[i]->src[argument].type == Shader::PARAMETER_TEXTURE) in analyzeInterpolants()
295 if(instruction[i]->src[argument].type == Shader::PARAMETER_TEXTURE) in analyzeInterpolants()
302 case Shader::OPCODE_TEX: in analyzeInterpolants()
303 case Shader::OPCODE_TEXLDD: in analyzeInterpolants()
304 case Shader::OPCODE_TEXLDL: in analyzeInterpolants()
305 case Shader::OPCODE_TEXOFFSET: in analyzeInterpolants()
306 case Shader::OPCODE_TEXLDLOFFSET: in analyzeInterpolants()
307 case Shader::OPCODE_TEXELFETCH: in analyzeInterpolants()
308 case Shader::OPCODE_TEXELFETCHOFFSET: in analyzeInterpolants()
309 case Shader::OPCODE_TEXGRAD: in analyzeInterpolants()
310 case Shader::OPCODE_TEXGRADOFFSET: in analyzeInterpolants()
316 case Shader::SAMPLER_UNKNOWN: in analyzeInterpolants()
337 case Shader::SAMPLER_1D: in analyzeInterpolants()
340 case Shader::SAMPLER_2D: in analyzeInterpolants()
344 case Shader::SAMPLER_CUBE: in analyzeInterpolants()
349 case Shader::SAMPLER_VOLUME: in analyzeInterpolants()
368 if(version == 0x0104 && instruction[i]->opcode == Shader::OPCODE_TEX) in analyzeInterpolants()
370 if(instruction[i]->src[0].modifier == Shader::MODIFIER_DZ) in analyzeInterpolants()
375 if(instruction[i]->src[0].modifier == Shader::MODIFIER_DW) in analyzeInterpolants()
382 case Shader::OPCODE_M3X2: in analyzeInterpolants()
402 case Shader::OPCODE_M3X3: in analyzeInterpolants()
430 case Shader::OPCODE_M3X4: in analyzeInterpolants()
466 case Shader::OPCODE_M4X3: in analyzeInterpolants()
494 case Shader::OPCODE_M4X4: in analyzeInterpolants()
530 case Shader::OPCODE_CRS: in analyzeInterpolants()
555 case Shader::OPCODE_DP2ADD: in analyzeInterpolants()
571 case Shader::OPCODE_DP3: in analyzeInterpolants()
577 case Shader::OPCODE_DP4: in analyzeInterpolants()
583 case Shader::OPCODE_SINCOS: in analyzeInterpolants()
584 case Shader::OPCODE_EXP2X: in analyzeInterpolants()
585 case Shader::OPCODE_LOG2X: in analyzeInterpolants()
586 case Shader::OPCODE_POWX: in analyzeInterpolants()
587 case Shader::OPCODE_RCPX: in analyzeInterpolants()
588 case Shader::OPCODE_RSQX: in analyzeInterpolants()
594 case Shader::OPCODE_NRM3: in analyzeInterpolants()
600 case Shader::OPCODE_MOV: in analyzeInterpolants()
601 case Shader::OPCODE_ADD: in analyzeInterpolants()
602 case Shader::OPCODE_SUB: in analyzeInterpolants()
603 case Shader::OPCODE_MUL: in analyzeInterpolants()
604 case Shader::OPCODE_MAD: in analyzeInterpolants()
605 case Shader::OPCODE_ABS: in analyzeInterpolants()
606 case Shader::OPCODE_CMP0: in analyzeInterpolants()
607 case Shader::OPCODE_CND: in analyzeInterpolants()
608 case Shader::OPCODE_FRC: in analyzeInterpolants()
609 case Shader::OPCODE_LRP: in analyzeInterpolants()
610 case Shader::OPCODE_MAX: in analyzeInterpolants()
611 case Shader::OPCODE_MIN: in analyzeInterpolants()
612 case Shader::OPCODE_CMP: in analyzeInterpolants()
613 case Shader::OPCODE_BREAKC: in analyzeInterpolants()
614 case Shader::OPCODE_DFDX: in analyzeInterpolants()
615 case Shader::OPCODE_DFDY: in analyzeInterpolants()
621 case Shader::OPCODE_TEXCOORD: in analyzeInterpolants()
627 case Shader::OPCODE_TEXDP3: in analyzeInterpolants()
628 case Shader::OPCODE_TEXDP3TEX: in analyzeInterpolants()
629 case Shader::OPCODE_TEXM3X2PAD: in analyzeInterpolants()
630 case Shader::OPCODE_TEXM3X3PAD: in analyzeInterpolants()
631 case Shader::OPCODE_TEXM3X2TEX: in analyzeInterpolants()
632 case Shader::OPCODE_TEXM3X3SPEC: in analyzeInterpolants()
633 case Shader::OPCODE_TEXM3X3VSPEC: in analyzeInterpolants()
634 case Shader::OPCODE_TEXBEM: in analyzeInterpolants()
635 case Shader::OPCODE_TEXBEML: in analyzeInterpolants()
636 case Shader::OPCODE_TEXM3X2DEPTH: in analyzeInterpolants()
637 case Shader::OPCODE_TEXM3X3: in analyzeInterpolants()
638 case Shader::OPCODE_TEXM3X3TEX: in analyzeInterpolants()
643 case Shader::OPCODE_TEXREG2AR: in analyzeInterpolants()
644 case Shader::OPCODE_TEXREG2GB: in analyzeInterpolants()
645 case Shader::OPCODE_TEXREG2RGB: in analyzeInterpolants()
673 if(instruction[i]->opcode == Shader::OPCODE_DCL) in analyzeInterpolants()
675 if(instruction[i]->dst.type == Shader::PARAMETER_INPUT) in analyzeInterpolants()
687 else if(instruction[i]->dst.type == Shader::PARAMETER_MISCTYPE) in analyzeInterpolants()
709 if(instruction[i]->opcode == Shader::OPCODE_DCL) in analyzeInterpolants()
716 case Shader::PARAMETER_INPUT: in analyzeInterpolants()
719 case Shader::PARAMETER_TEXTURE: in analyzeInterpolants()