diff options
author | Tom Stellard <[email protected]> | 2013-06-28 11:08:07 -0700 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2013-06-28 11:11:43 -0700 |
commit | 47e35eff9dec8666efd70ffd08e4b03f83215026 (patch) | |
tree | 1e26ac5ef326f77d3dbd0c9faeaf06f698e9734e /src/gallium | |
parent | ee723ffabb4c76f4c1924436af145f5eca1012fc (diff) |
r600g: Fix build
Broken since 2840bec56f79347b95dec5458b20d4a46d1aa445 when opencl is
disabled.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/r600/evergreen_compute.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/evergreen_compute.c b/src/gallium/drivers/r600/evergreen_compute.c index 226933b37db..9be9b9944a8 100644 --- a/src/gallium/drivers/r600/evergreen_compute.c +++ b/src/gallium/drivers/r600/evergreen_compute.c @@ -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; |