Lines Matching refs:code

239     struct rX00_fragment_program_code *generic_code = &shader->code;
248 struct r500_fragment_program_code *code = &generic_code->code.r500;
251 ((code->inst_end + 1) * 6) +
253 code->int_constant_count * 2;
257 OUT_CB_REG(R500_US_PIXSIZE, code->max_temp_idx);
258 OUT_CB_REG(R500_US_FC_CTRL, code->us_fc_ctrl);
259 for(i = 0; i < code->int_constant_count; i++){
261 code->int_constants[i]);
264 R500_US_CODE_RANGE_ADDR(0) | R500_US_CODE_RANGE_SIZE(code->inst_end));
267 R500_US_CODE_START_ADDR(0) | R500_US_CODE_END_ADDR(code->inst_end));
270 OUT_CB_ONE_REG(R500_GA_US_VECTOR_DATA, (code->inst_end + 1) * 6);
271 for (i = 0; i <= code->inst_end; i++) {
272 OUT_CB(code->inst[i].inst0);
273 OUT_CB(code->inst[i].inst1);
274 OUT_CB(code->inst[i].inst2);
275 OUT_CB(code->inst[i].inst3);
276 OUT_CB(code->inst[i].inst4);
277 OUT_CB(code->inst[i].inst5);
295 struct r300_fragment_program_code *code = &generic_code->code.r300;
296 unsigned int alu_length = code->alu.length;
298 unsigned int tex_length = code->tex.length;
311 (code->r390_mode ? (5 * alu_iterations) : 4) +
313 (code->r390_mode ? (code->alu.length) : 0) +
315 code->alu.length * 4 +
317 (code->tex.length > 0 ? code->tex.length + tex_iterations : 0) +
322 OUT_CB_REG(R300_US_CONFIG, code->config);
323 OUT_CB_REG(R300_US_PIXSIZE, code->pixsize);
324 OUT_CB_REG(R300_US_CODE_OFFSET, code->code_offset);
326 if (code->r390_mode) {
327 OUT_CB_REG(R400_US_CODE_EXT, code->r400_code_offset_ext);
336 OUT_CB_TABLE(code->code_addr, 4);
345 OUT_CB_REG(R400_US_CODE_BANK, code->r390_mode ?
352 OUT_CB(code->alu.inst[i + bank_alu_offset].rgb_inst);
356 OUT_CB(code->alu.inst[i + bank_alu_offset].rgb_addr);
360 OUT_CB(code->alu.inst[i + bank_alu_offset].alpha_inst);
364 OUT_CB(code->alu.inst[i + bank_alu_offset].alpha_addr);
366 if (code->r390_mode) {
369 OUT_CB(code->alu.inst[i + bank_alu_offset].r400_ext_addr);
375 OUT_CB_TABLE(code->tex.inst + bank_tex_offset, bank_tex_length);
381 } while(code->r390_mode && (alu_length > 0 || tex_length > 0));
387 code->r390_mode ? R400_R390_MODE_ENABLE : 0);
432 compiler.code = &shader->code;
486 * the only code that directly reads the WPOS input.
487 * All other code pieces that reference that input will be rewritten
518 if (shader->code.code.r500.inst_end == -1) {
527 i < shader->code.constants.Count &&
528 shader->code.constants.Constants[i].Type == RC_CONSTANT_EXTERNAL; i++) {
534 for (i = shader->externals_count; i < shader->code.constants.Count; i++) {
535 switch (shader->code.constants.Constants[i].Type) {
548 if (shader->code.writes_depth) {