{
CS_LOCALS(r300);
int i = 0;
- BEGIN_CS(11 + (shader->shader.instruction_count * 6));
+ BEGIN_CS(11 + (fs->instruction_count * 6));
OUT_CS_REG(R500_US_CONFIG, R500_ZERO_TIMES_ANYTHING_EQUALS_ZERO);
OUT_CS_REG(R500_US_PIXSIZE, fs->shader.stack_size);
OUT_CS_REG(R500_US_CODE_ADDR, R500_US_CODE_START_ADDR(0) |
OUT_CS_REG(R500_GA_US_VECTOR_INDEX, R500_GA_US_VECTOR_INDEX_TYPE_INSTR);
OUT_CS_ONE_REG(R500_GA_US_VECTOR_DATA,
- shader->shader.instruction_count * 6);
- for (i = 0; i < shader->shader.instruction_count; i++) {
- OUT_CS(shader->instructions[i].inst0);
- OUT_CS(shader->instructions[i].inst1);
- OUT_CS(shader->instructions[i].inst2);
- OUT_CS(shader->instructions[i].inst3);
- OUT_CS(shader->instructions[i].inst4);
- OUT_CS(shader->instructions[i].inst5);
+ fs->instruction_count * 6);
+ for (i = 0; i < fs->instruction_count; i++) {
+ OUT_CS(fs->instructions[i].inst0);
+ OUT_CS(fs->instructions[i].inst1);
+ OUT_CS(fs->instructions[i].inst2);
+ OUT_CS(fs->instructions[i].inst3);
+ OUT_CS(fs->instructions[i].inst4);
+ OUT_CS(fs->instructions[i].inst5);
}
R300_PACIFY;
END_CS;
OUT_CS(R300_US_OUT_FMT_UNUSED);
OUT_CS(R300_US_OUT_FMT_UNUSED);
OUT_CS_REG(R300_US_W_FMT, R300_W_FMT_W0); */
- .alu_instruction_count = 1;
- .tex_instruction_count = 0;
- .indirections = 1;
- .shader.stack_size = 2;
+ .alu_instruction_count = 1,
+ .tex_instruction_count = 0,
+ .indirections = 1,
+ .shader.stack_size = 2,
/* XXX decode these */
- .instructions[0].alu_rgb_inst = 0x50A80;
- .instructions[0].alu_rgb_inst = 0x1C000000;
- .instructions[0].alu_alpha_inst = 0x40889;
- .instructions[0].alu_alpha_inst = 0x1000000;
+ .instructions[0].alu_rgb_inst = 0x50A80,
+ .instructions[0].alu_rgb_inst = 0x1C000000,
+ .instructions[0].alu_alpha_inst = 0x40889,
+ .instructions[0].alu_alpha_inst = 0x1000000,
};
static const struct r500_fragment_shader r500_passthrough_fragment_shader = {