summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_vs.c
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2010-05-26 04:18:27 +0200
committerMarek Olšák <maraeo@gmail.com>2010-05-26 04:47:26 +0200
commit5c067a63040cc66f0320f30482529a4ff1bd3811 (patch)
tree0dc371d1dc23ad42a8f5c361acfabd388afbad41 /src/gallium/drivers/r300/r300_vs.c
parentf2582da3bb72b06d7a751537898f752e110857c7 (diff)
downloadexternal_mesa3d-5c067a63040cc66f0320f30482529a4ff1bd3811.zip
external_mesa3d-5c067a63040cc66f0320f30482529a4ff1bd3811.tar.gz
external_mesa3d-5c067a63040cc66f0320f30482529a4ff1bd3811.tar.bz2
r300/compiler: move hardware caps to the radeon_compiler base struct
Needed for vertex shaders too.
Diffstat (limited to 'src/gallium/drivers/r300/r300_vs.c')
-rw-r--r--src/gallium/drivers/r300/r300_vs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_vs.c b/src/gallium/drivers/r300/r300_vs.c
index 6d69bb3..b25c786 100644
--- a/src/gallium/drivers/r300/r300_vs.c
+++ b/src/gallium/drivers/r300/r300_vs.c
@@ -203,6 +203,8 @@ void r300_translate_vertex_shader(struct r300_context *r300,
compiler.Base.Debug = DBG_ON(r300, DBG_VP);
compiler.code = &vs->code;
compiler.UserData = vs;
+ compiler.Base.is_r500 = r300->screen->caps.is_r500;
+ compiler.Base.max_temp_regs = 32;
if (compiler.Base.Debug) {
debug_printf("r300: Initial vertex program\n");