Lines Matching refs:code
242 struct rX00_fragment_program_code *generic_code = &shader->code;
251 struct r500_fragment_program_code *code = &generic_code->code.r500;
254 ((code->inst_end + 1) * 6) +
256 code->int_constant_count * 2;
260 OUT_CB_REG(R500_US_PIXSIZE, code->max_temp_idx);
261 OUT_CB_REG(R500_US_FC_CTRL, code->us_fc_ctrl);
262 for(i = 0; i < code->int_constant_count; i++){
264 code->int_constants[i]);
267 R500_US_CODE_RANGE_ADDR(0) | R500_US_CODE_RANGE_SIZE(code->inst_end));
270 R500_US_CODE_START_ADDR(0) | R500_US_CODE_END_ADDR(code->inst_end));
273 OUT_CB_ONE_REG(R500_GA_US_VECTOR_DATA, (code->inst_end + 1) * 6);
274 for (i = 0; i <= code->inst_end; i++) {
275 OUT_CB(code->inst[i].inst0);
276 OUT_CB(code->inst[i].inst1);
277 OUT_CB(code->inst[i].inst2);
278 OUT_CB(code->inst[i].inst3);
279 OUT_CB(code->inst[i].inst4);
280 OUT_CB(code->inst[i].inst5);
298 struct r300_fragment_program_code *code = &generic_code->code.r300;
299 unsigned int alu_length = code->alu.length;
301 unsigned int tex_length = code->tex.length;
314 (code->r390_mode ? (5 * alu_iterations) : 4) +
316 (code->r390_mode ? (code->alu.length) : 0) +
318 code->alu.length * 4 +
320 (code->tex.length > 0 ? code->tex.length + tex_iterations : 0) +
325 OUT_CB_REG(R300_US_CONFIG, code->config);
326 OUT_CB_REG(R300_US_PIXSIZE, code->pixsize);
327 OUT_CB_REG(R300_US_CODE_OFFSET, code->code_offset);
329 if (code->r390_mode) {
330 OUT_CB_REG(R400_US_CODE_EXT, code->r400_code_offset_ext);
339 OUT_CB_TABLE(code->code_addr, 4);
348 OUT_CB_REG(R400_US_CODE_BANK, code->r390_mode ?
355 OUT_CB(code->alu.inst[i + bank_alu_offset].rgb_inst);
359 OUT_CB(code->alu.inst[i + bank_alu_offset].rgb_addr);
363 OUT_CB(code->alu.inst[i + bank_alu_offset].alpha_inst);
367 OUT_CB(code->alu.inst[i + bank_alu_offset].alpha_addr);
369 if (code->r390_mode) {
372 OUT_CB(code->alu.inst[i + bank_alu_offset].r400_ext_addr);
378 OUT_CB_TABLE(code->tex.inst + bank_tex_offset, bank_tex_length);
384 } while(code->r390_mode && (alu_length > 0 || tex_length > 0));
390 code->r390_mode ? R400_R390_MODE_ENABLE : 0);
436 compiler.code = &shader->code;
487 * the only code that directly reads the WPOS input.
488 * All other code pieces that reference that input will be rewritten
519 if (shader->code.code.r500.inst_end == -1) {
528 i < shader->code.constants.Count &&
529 shader->code.constants.Constants[i].Type == RC_CONSTANT_EXTERNAL; i++) {
535 for (i = shader->externals_count; i < shader->code.constants.Count; i++) {
536 switch (shader->code.constants.Constants[i].Type) {
549 if (shader->code.writes_depth) {