summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_vs.c
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2010-04-14 02:21:06 +0200
committerMarek Olšák <maraeo@gmail.com>2010-04-14 04:48:19 +0200
commitabc2f29dd2baa9c8aa672f07a1500e579364ab29 (patch)
tree6c96dc9ecc804b517dda331c010dc11b22220b51 /src/gallium/drivers/r300/r300_vs.c
parent6793506faa13c259b1f36fb4cbe21841f851e248 (diff)
r300g: emit VS immediates along with VS code
Diffstat (limited to 'src/gallium/drivers/r300/r300_vs.c')
-rw-r--r--src/gallium/drivers/r300/r300_vs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_vs.c b/src/gallium/drivers/r300/r300_vs.c
index 2f9ee76bd8..8137972f01 100644
--- a/src/gallium/drivers/r300/r300_vs.c
+++ b/src/gallium/drivers/r300/r300_vs.c
@@ -333,6 +333,10 @@ void r300_translate_vertex_shader(struct r300_context* r300,
r300_dummy_vertex_shader(r300, vs);
}
+ /* Initialize numbers of constants for each type. */
+ vs->externals_count = ttr.immediate_offset;
+ vs->immediates_count = vs->code.constants.Count - vs->externals_count;
+
/* And, finally... */
rc_destroy(&compiler.Base);
}