diff options
author | Kristian H. Kristensen <[email protected]> | 2020-04-22 16:52:46 -0700 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-04-25 00:03:43 +0000 |
commit | 869d86e664a02de0dc9a7f31defaffaa8ef07f91 (patch) | |
tree | 36941bba345c0e92387599e76dd19aa5af77886a /src/freedreno/computerator/ir3_asm.c | |
parent | 375c7a3863d141491bd81ca96605c709af118074 (diff) |
freedreno/computerator: Decouple ir3 assembler
Specifically, don't include ir3_asm.h in the parser as that's
computerator specific.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4741>
Diffstat (limited to 'src/freedreno/computerator/ir3_asm.c')
-rw-r--r-- | src/freedreno/computerator/ir3_asm.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/freedreno/computerator/ir3_asm.c b/src/freedreno/computerator/ir3_asm.c index 11cc7ee06f7..46e21347407 100644 --- a/src/freedreno/computerator/ir3_asm.c +++ b/src/freedreno/computerator/ir3_asm.c @@ -41,14 +41,18 @@ ir3_asm_assemble(struct ir3_compiler *c, FILE *in) kernel->v = v; - kernel->numwg = INVALID_REG; + kernel->info.numwg = INVALID_REG; - v->ir = ir3_parse(kernel, in); + v->ir = ir3_parse(v, &kernel->info, in); if (!v->ir) errx(-1, "parse failed"); ir3_debug_print(v->ir, "AFTER PARSING"); + memcpy(kernel->base.local_size, kernel->info.local_size, sizeof(kernel->base.local_size)); + kernel->base.num_bufs = kernel->info.num_bufs; + memcpy(kernel->base.buf_sizes, kernel->info.buf_sizes, sizeof(kernel->base.buf_sizes)); + kernel->bin = ir3_shader_assemble(v, c->gpu_id); unsigned sz = v->info.sizedwords * 4; |