Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
void draw_geometry_shader_prepare(struct draw_geometry_shader *shader,
struct draw_context *draw)
{
- if (shader && shader->machine->Tokens != shader->state.tokens) {
+#ifdef HAVE_LLVM
+ boolean use_llvm = draw_get_option_use_llvm();
+#else
+ boolean use_llvm = FALSE;
+#endif
+ if (!use_llvm && shader && shader->machine->Tokens != shader->state.tokens) {
tgsi_exec_machine_bind_shader(shader->machine,
shader->state.tokens,
draw->gs.tgsi.sampler);