summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_shader.c
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2013-06-12 12:36:08 -0700
committerTom Stellard <[email protected]>2013-06-28 08:33:11 -0700
commit2639fca1f017907af7ce446fba60b520aa376abc (patch)
tree94912f3c25ee3576cda31c8d41969d7480fed635 /src/gallium/drivers/r600/r600_shader.c
parentba4979810fe072bcd2a4ad110988837a7e542744 (diff)
r600g/compute: Move compute_shader_create() function into evergreen_compute.c
Tested-by: Aaron Watry <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_shader.c')
-rw-r--r--src/gallium/drivers/r600/r600_shader.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
index 3a734bc78b7..3af4ed93289 100644
--- a/src/gallium/drivers/r600/r600_shader.c
+++ b/src/gallium/drivers/r600/r600_shader.c
@@ -291,38 +291,6 @@ static int tgsi_bgnloop(struct r600_shader_ctx *ctx);
static int tgsi_endloop(struct r600_shader_ctx *ctx);
static int tgsi_loop_brk_cont(struct r600_shader_ctx *ctx);
-#ifdef HAVE_OPENCL
-int r600_compute_shader_create(struct pipe_context * ctx,
- LLVMModuleRef mod, struct r600_bytecode * bytecode)
-{
- struct r600_context *r600_ctx = (struct r600_context *)ctx;
- struct r600_shader_ctx shader_ctx;
- boolean use_kill = false;
- bool dump = (r600_ctx->screen->debug_flags & DBG_CS) != 0;
- unsigned use_sb = r600_ctx->screen->debug_flags & DBG_SB_CS;
- unsigned sb_disasm = use_sb ||
- (r600_ctx->screen->debug_flags & DBG_SB_DISASM);
-
- shader_ctx.bc = bytecode;
- r600_bytecode_init(shader_ctx.bc, r600_ctx->chip_class, r600_ctx->family,
- r600_ctx->screen->has_compressed_msaa_texturing);
- shader_ctx.bc->type = TGSI_PROCESSOR_COMPUTE;
- shader_ctx.bc->isa = r600_ctx->isa;
- r600_llvm_compile(mod, r600_ctx->family,
- shader_ctx.bc, &use_kill, dump);
-
- if (dump && !sb_disasm) {
- r600_bytecode_disasm(shader_ctx.bc);
- } else if ((dump && sb_disasm) || use_sb) {
- if (r600_sb_bytecode_process(r600_ctx, shader_ctx.bc, NULL, dump, use_sb))
- R600_ERR("r600_sb_bytecode_process failed!\n");
- }
-
- return 1;
-}
-
-#endif /* HAVE_OPENCL */
-
static int tgsi_is_supported(struct r600_shader_ctx *ctx)
{
struct tgsi_full_instruction *i = &ctx->parse.FullToken.FullInstruction;