summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_compute.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2014-09-17 22:44:22 +0200
committerMarek Olšák <[email protected]>2014-09-24 14:48:02 +0200
commit1abb1a97b0559b103c4a458def317c6440491a76 (patch)
tree62e6d35683d2fc36d2c464302b9592cbeee1489c /src/gallium/drivers/radeonsi/si_compute.c
parente29353ff20a2761a5a1caeaed78398557797207c (diff)
radeonsi: don't pass the context to the shader translator
This should prevent accessing context state there. Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_compute.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_compute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_compute.c b/src/gallium/drivers/radeonsi/si_compute.c
index 908826850f1..4b2662d27a2 100644
--- a/src/gallium/drivers/radeonsi/si_compute.c
+++ b/src/gallium/drivers/radeonsi/si_compute.c
@@ -81,7 +81,7 @@ static void *si_create_compute_state(
for (i = 0; i < program->num_kernels; i++) {
LLVMModuleRef mod = radeon_llvm_get_kernel_module(program->llvm_ctx, i,
code, header->num_bytes);
- si_compile_llvm(sctx, &program->kernels[i], mod);
+ si_compile_llvm(sctx->screen, &program->kernels[i], mod);
LLVMDisposeModule(mod);
}