mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 21:50:11 +01:00
r600g: Fix build with --enable-opencl
This commit is contained in:
parent
877e3c1d42
commit
3b20170b2f
1 changed files with 2 additions and 1 deletions
|
|
@ -273,12 +273,13 @@ int r600_compute_shader_create(struct pipe_context * ctx,
|
|||
struct r600_shader_ctx shader_ctx;
|
||||
bool dump = (r600_ctx->screen->debug_flags & DBG_CS) != 0;
|
||||
|
||||
r600_llvm_compile(mod, &bytes, &byte_count, r600_ctx->family , dump);
|
||||
shader_ctx.bc = bytecode;
|
||||
r600_bytecode_init(shader_ctx.bc, r600_ctx->chip_class, r600_ctx->family,
|
||||
r600_ctx->screen->msaa_texture_support);
|
||||
shader_ctx.bc->type = TGSI_PROCESSOR_COMPUTE;
|
||||
shader_ctx.bc->isa = r600_ctx->isa;
|
||||
r600_llvm_compile(mod, &bytes, &byte_count, r600_ctx->family,
|
||||
&shader_ctx.bc->ngpr, dump);
|
||||
r600_bytecode_from_byte_stream(&shader_ctx, bytes, byte_count);
|
||||
if (shader_ctx.bc->chip_class == CAYMAN) {
|
||||
cm_bytecode_add_cf_end(shader_ctx.bc);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue