r600g: Fix build
authorTom Stellard <thomas.stellard@amd.com>
Fri, 28 Jun 2013 18:08:07 +0000 (11:08 -0700)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 28 Jun 2013 18:11:43 +0000 (11:11 -0700)
Broken since 2840bec56f79347b95dec5458b20d4a46d1aa445 when opencl is
disabled.

src/gallium/drivers/r600/evergreen_compute.c

index 226933b37dbc9b4b25d19332e73cf5a59e278808..9be9b9944a82cd0a4873e3efce6677df0c36377a 100644 (file)
@@ -519,13 +519,13 @@ static void evergreen_launch_grid(
 {
        struct r600_context *ctx = (struct r600_context *)ctx_;
 
-#ifdef HAVE_OPENCL 
-
        struct r600_pipe_compute *shader = ctx->cs_shader_state.shader;
        struct r600_kernel *kernel = &shader->kernels[pc];
 
        COMPUTE_DBG(ctx->screen, "*** evergreen_launch_grid: pc = %u\n", pc);
 
+#ifdef HAVE_OPENCL
+
        if (!kernel->code_bo) {
                void *p;
                struct r600_bytecode *bc = &kernel->bc;