summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_state_shader.h
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2009-03-15 23:04:49 -0700
committerCorbin Simpson <MostAwesomeDude@gmail.com>2009-03-15 23:07:31 -0700
commit44adea1a0975ebad59790b9cfd03439aa44559fc (patch)
treeafa2f5369432209d9efb6e4c6eaf1ba9a285b232 /src/gallium/drivers/r300/r300_state_shader.h
parent1e56bb890bff5a9750dbd439e91ce03c87a750b8 (diff)
r300-gallium: r500-fs: Setup immediates.
Textures still not working. RS block shenanigans expected.
Diffstat (limited to 'src/gallium/drivers/r300/r300_state_shader.h')
-rw-r--r--src/gallium/drivers/r300/r300_state_shader.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_state_shader.h b/src/gallium/drivers/r300/r300_state_shader.h
index 87a5c99648..8011e1f538 100644
--- a/src/gallium/drivers/r300/r300_state_shader.h
+++ b/src/gallium/drivers/r300/r300_state_shader.h
@@ -60,6 +60,8 @@
/* Temporary struct used to hold assembly state while putting together
* fragment programs. */
struct r300_fs_asm {
+ /* Pipe context. */
+ struct r300_context* r300;
/* Number of colors. */
unsigned color_count;
/* Number of texcoords. */
@@ -70,6 +72,10 @@ struct r300_fs_asm {
unsigned temp_offset;
/* Number of requested temporary registers. */
unsigned temp_count;
+ /* Offset for immediate constants. Neither R300 nor R500 can do four
+ * inline constants per source, so instead we copy immediates into the
+ * constant buffer. */
+ unsigned imm_offset;
};
void r300_translate_fragment_shader(struct r300_context* r300,