r600g: Fix build with LLVM compiler
authorTom Stellard <thomas.stellard@amd.com>
Sat, 22 Sep 2012 00:07:14 +0000 (20:07 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Sat, 22 Sep 2012 00:07:14 +0000 (20:07 -0400)
src/gallium/drivers/r600/r600_shader.c

index 11cf235c929a37fdae4dba838caff93eec1b7f5e..6e475933175c72145dd7010fa1e84074a1898437 100644 (file)
@@ -1269,7 +1269,7 @@ static int r600_shader_from_tgsi(struct r600_screen *rscreen,
                        dump = 1;
                }
                if (r600_llvm_compile(mod, &inst_bytes, &inst_byte_count,
-                                                       rctx->family, dump)) {
+                                                       rscreen->family, dump)) {
                        FREE(inst_bytes);
                        radeon_llvm_dispose(&radeon_llvm_ctx);
                        use_llvm = 0;