Home | History | Annotate | Download | only in r300

Lines Matching refs:code

255     struct rX00_fragment_program_code *generic_code = &shader->code;
264 struct r500_fragment_program_code *code = &generic_code->code.r500;
267 ((code->inst_end + 1) * 6) +
269 code->int_constant_count * 2;
273 OUT_CB_REG(R500_US_PIXSIZE, code->max_temp_idx);
274 OUT_CB_REG(R500_US_FC_CTRL, code->us_fc_ctrl);
275 for(i = 0; i < code->int_constant_count; i++){
277 code->int_constants[i]);
280 R500_US_CODE_RANGE_ADDR(0) | R500_US_CODE_RANGE_SIZE(code->inst_end));
283 R500_US_CODE_START_ADDR(0) | R500_US_CODE_END_ADDR(code->inst_end));
286 OUT_CB_ONE_REG(R500_GA_US_VECTOR_DATA, (code->inst_end + 1) * 6);
287 for (i = 0; i <= code->inst_end; i++) {
288 OUT_CB(code->inst[i].inst0);
289 OUT_CB(code->inst[i].inst1);
290 OUT_CB(code->inst[i].inst2);
291 OUT_CB(code->inst[i].inst3);
292 OUT_CB(code->inst[i].inst4);
293 OUT_CB(code->inst[i].inst5);
311 struct r300_fragment_program_code *code = &generic_code->code.r300;
312 unsigned int alu_length = code->alu.length;
314 unsigned int tex_length = code->tex.length;
327 (code->r390_mode ? (5 * alu_iterations) : 4) +
329 (code->r390_mode ? (code->alu.length) : 0) +
331 code->alu.length * 4 +
333 (code->tex.length > 0 ? code->tex.length + tex_iterations : 0) +
338 OUT_CB_REG(R300_US_CONFIG, code->config);
339 OUT_CB_REG(R300_US_PIXSIZE, code->pixsize);
340 OUT_CB_REG(R300_US_CODE_OFFSET, code->code_offset);
342 if (code->r390_mode) {
343 OUT_CB_REG(R400_US_CODE_EXT, code->r400_code_offset_ext);
352 OUT_CB_TABLE(code->code_addr, 4);
361 OUT_CB_REG(R400_US_CODE_BANK, code->r390_mode ?
368 OUT_CB(code->alu.inst[i + bank_alu_offset].rgb_inst);
372 OUT_CB(code->alu.inst[i + bank_alu_offset].rgb_addr);
376 OUT_CB(code->alu.inst[i + bank_alu_offset].alpha_inst);
380 OUT_CB(code->alu.inst[i + bank_alu_offset].alpha_addr);
382 if (code->r390_mode) {
385 OUT_CB(code->alu.inst[i + bank_alu_offset].r400_ext_addr);
391 OUT_CB_TABLE(code->tex.inst + bank_tex_offset, bank_tex_length);
397 } while(code->r390_mode && (alu_length > 0 || tex_length > 0));
403 code->r390_mode ? R400_R390_MODE_ENABLE : 0);
449 compiler.code = &shader->code;
504 * the only code that directly reads the WPOS input.
505 * All other code pieces that reference that input will be rewritten
536 if (shader->code.code.r500.inst_end == -1) {
545 i < shader->code.constants.Count &&
546 shader->code.constants.Constants[i].Type == RC_CONSTANT_EXTERNAL; i++) {
552 for (i = shader->externals_count; i < shader->code.constants.Count; i++) {
553 switch (shader->code.constants.Constants[i].Type) {
566 if (shader->code.writes_depth) {