diff options
Diffstat (limited to 'src/gallium/drivers/r600/r600_shader.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_shader.c | 32 |
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; |