summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2012-10-09 19:54:12 +0000
committerTom Stellard <[email protected]>2012-10-09 19:54:12 +0000
commit45288cd2b6dc37c80cc18b777e58d11e65f61d7c (patch)
tree0f1d719319c7da644eb648e977a571b416c719e4 /src/gallium/drivers
parentb25fbceb86ed26b249a884a0041a1ebcd4e320c3 (diff)
r600g: Fix build with --enable-opencl
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/r600/evergreen_compute.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/evergreen_compute.c b/src/gallium/drivers/r600/evergreen_compute.c
index fe9e2f98ce0..156e89ada49 100644
--- a/src/gallium/drivers/r600/evergreen_compute.c
+++ b/src/gallium/drivers/r600/evergreen_compute.c
@@ -480,10 +480,12 @@ static void evergreen_launch_grid(
{
struct r600_context *ctx = (struct r600_context *)ctx_;
+#ifdef HAVE_OPENCL
COMPUTE_DBG("*** evergreen_launch_grid: pc = %u\n", pc);
-#ifdef HAVE_OPENCL
+ struct r600_pipe_compute *shader = ctx->cs_shader_state.shader;
if (!shader->kernels[pc].code_bo) {
+ void *p;
struct r600_kernel *kernel = &shader->kernels[pc];
r600_compute_shader_create(ctx_, kernel->llvm_module, &kernel->bc);
kernel->code_bo = r600_compute_buffer_alloc_vram(ctx->screen,