OSDN Git Service

r600g/llvm: uses function attribute to pass shader type
authorVincent Lejeune <vljn@ovi.com>
Sat, 30 Mar 2013 19:05:45 +0000 (20:05 +0100)
committerVincent Lejeune <vljn@ovi.com>
Mon, 1 Apr 2013 21:43:42 +0000 (23:43 +0200)
src/gallium/drivers/r600/r600_llvm.c

index 6e6edb7..e3e7d9f 100644 (file)
@@ -179,6 +179,7 @@ static void llvm_load_input(
 static void llvm_emit_prologue(struct lp_build_tgsi_context * bld_base)
 {
        struct radeon_llvm_context * ctx = radeon_llvm_context(bld_base);
+       radeon_llvm_shader_type(ctx->main_fn, ctx->type);
 
 }