summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/evergreen_compute.c
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2013-04-22 08:34:18 -0700
committerTom Stellard <[email protected]>2013-04-25 13:24:51 -0700
commit83a00a1de8b2acb9d500fcdfa9031dc709f6d7d1 (patch)
tree429ce3dea3220952d7bffde09ad667b4ad0c1329 /src/gallium/drivers/r600/evergreen_compute.c
parent09e47f7a25a4e9daa06692819e8fdfdb412c7a46 (diff)
r600g/compute: Don't use radeon_winsys::buffer_wait() after dispatching a kernel
The state tracker should be responsible for waiting for the kernel to finish. Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/evergreen_compute.c')
-rw-r--r--src/gallium/drivers/r600/evergreen_compute.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/gallium/drivers/r600/evergreen_compute.c b/src/gallium/drivers/r600/evergreen_compute.c
index 58dc36d1d2a..05e5e3d1ef2 100644
--- a/src/gallium/drivers/r600/evergreen_compute.c
+++ b/src/gallium/drivers/r600/evergreen_compute.c
@@ -314,7 +314,6 @@ static void compute_emit_cs(struct r600_context *ctx, const uint *block_layout,
struct radeon_winsys_cs *cs = ctx->rings.gfx.cs;
unsigned flush_flags = 0;
int i;
- struct r600_resource *onebo = NULL;
struct evergreen_compute_resource *resources =
ctx->cs_shader_state.shader->resources;
@@ -390,7 +389,6 @@ static void compute_emit_cs(struct r600_context *ctx, const uint *block_layout,
}
if (resources[i].bo) {
- onebo = resources[i].bo;
evergreen_emit_ctx_reloc(ctx,
resources[i].bo,
resources[i].usage);
@@ -431,10 +429,6 @@ static void compute_emit_cs(struct r600_context *ctx, const uint *block_layout,
ctx->flags = 0;
COMPUTE_DBG(ctx->screen, "shader started\n");
-
- ctx->ws->buffer_wait(onebo->buf, 0);
-
- COMPUTE_DBG(ctx->screen, "...\n");
}