summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2013-04-18 11:24:48 -0700
committerTom Stellard <[email protected]>2013-04-18 11:24:48 -0700
commit3b20170b2fb74a45031bf1e41d5149d2b3d4f2bf (patch)
treeb0fba5cdd34d5fa6912d0f381e60a434477a07fb /src/gallium
parent877e3c1d42bdf475fb97d575ccc195c627ca3481 (diff)
r600g: Fix build with --enable-opencl
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/r600/r600_shader.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
index 465186d8a49..2907c7c15f2 100644
--- a/src/gallium/drivers/r600/r600_shader.c
+++ b/src/gallium/drivers/r600/r600_shader.c
@@ -273,12 +273,13 @@ int r600_compute_shader_create(struct pipe_context * ctx,
struct r600_shader_ctx shader_ctx;
bool dump = (r600_ctx->screen->debug_flags & DBG_CS) != 0;
- r600_llvm_compile(mod, &bytes, &byte_count, r600_ctx->family , dump);
shader_ctx.bc = bytecode;
r600_bytecode_init(shader_ctx.bc, r600_ctx->chip_class, r600_ctx->family,
r600_ctx->screen->msaa_texture_support);
shader_ctx.bc->type = TGSI_PROCESSOR_COMPUTE;
shader_ctx.bc->isa = r600_ctx->isa;
+ r600_llvm_compile(mod, &bytes, &byte_count, r600_ctx->family,
+ &shader_ctx.bc->ngpr, dump);
r600_bytecode_from_byte_stream(&shader_ctx, bytes, byte_count);
if (shader_ctx.bc->chip_class == CAYMAN) {
cm_bytecode_add_cf_end(shader_ctx.bc);