summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_state_shader.c
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2009-02-12 20:01:09 -0800
committerCorbin Simpson <[email protected]>2009-02-12 20:01:09 -0800
commit637b24a5904ab78cbd3fc61ea5fe39c52be711ce (patch)
tree463da95efc3b1a40cd17332c9915528cabd9375d /src/gallium/drivers/r300/r300_state_shader.c
parentf2a36d334c6fbe3787d44c6203f54ccb184fb923 (diff)
r300-gallium: Add r300 passthrough shader.
Diffstat (limited to 'src/gallium/drivers/r300/r300_state_shader.c')
-rw-r--r--src/gallium/drivers/r300/r300_state_shader.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_state_shader.c b/src/gallium/drivers/r300/r300_state_shader.c
index 710b7ee0a60..824dbeb0aa2 100644
--- a/src/gallium/drivers/r300/r300_state_shader.c
+++ b/src/gallium/drivers/r300/r300_state_shader.c
@@ -24,11 +24,21 @@
void r300_make_passthrough_fragment_shader(struct r300_fragment_shader* fs)
{
+ fs->alu_instruction_count = 1;
+ fs->tex_instruction_count = 0;
+ fs->indirections = 1;
+ fs->shader.stack_size = 2;
+
+ /* XXX decode these */
+ fs->instructions[0].alu_rgb_inst = 0x50A80;
+ fs->instructions[0].alu_rgb_inst = 0x1C000000;
+ fs->instructions[0].alu_alpha_inst = 0x40889;
+ fs->instructions[0].alu_alpha_inst = 0x1000000;
}
void r500_make_passthrough_fragment_shader(struct r500_fragment_shader* fs)
{
- fs->shader.instruction_count = 1;
+ fs->instruction_count = 1;
fs->shader.stack_size = 0;
fs->instructions[0].inst0 = R500_INST_TYPE_OUT |