summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_program.c
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2007-10-08 10:24:35 -0400
committerZack Rusin <[email protected]>2007-10-24 11:21:03 -0400
commitb2e529982eb702ea039f6436c9dece39401a4c9c (patch)
tree631036582a6580c105752b2fbe5ed41fef01225c /src/mesa/state_tracker/st_program.c
parent4664261f8d8fefa347bf38a224f6584d0fdeebfc (diff)
Initial stab at LLVM integration.
Diffstat (limited to 'src/mesa/state_tracker/st_program.c')
-rw-r--r--src/mesa/state_tracker/st_program.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c
index 5b6fa70dff4..edb2703101f 100644
--- a/src/mesa/state_tracker/st_program.c
+++ b/src/mesa/state_tracker/st_program.c
@@ -39,6 +39,7 @@
#include "pipe/draw/draw_context.h"
#include "pipe/tgsi/mesa/mesa_to_tgsi.h"
#include "pipe/tgsi/exec/tgsi_core.h"
+#include "pipe/llvm/llvmtgsi.h"
#include "st_context.h"
#include "st_cache.h"
@@ -250,6 +251,7 @@ st_translate_vertex_program(struct st_context *st,
tokensOut, maxTokens);
vs.tokens = tokensOut;
+ vs.llvm_prog = ga_llvm_from_tgsi(vs.tokens);
cso = st_cached_vs_state(st, &vs);
stvp->vs = cso;
@@ -405,7 +407,7 @@ st_translate_fragment_program(struct st_context *st,
tokensOut, maxTokens);
fs.tokens = tokensOut;
-
+ fs.llvm_prog = ga_llvm_from_tgsi(fs.tokens);
cso = st_cached_fs_state(st, &fs);
stfp->fs = cso;