Lines Matching refs:kernel
49 static struct kernel *
59 a4xx_disassemble(struct kernel *kernel, FILE *out) in a4xx_disassemble() argument
61 ir3_asm_disassemble(to_ir3_kernel(kernel), out); in a4xx_disassemble()
65 cs_program_emit(struct fd_ringbuffer *ring, struct kernel *kernel) in cs_program_emit() argument
67 struct ir3_kernel *ir3_kernel = to_ir3_kernel(kernel); in cs_program_emit()
159 emit_const(struct fd_ringbuffer *ring, struct kernel *kernel, uint32_t constid, uint32_t sizedwords, in emit_const() argument
169 if (kernel->buf_addr_regs[i] != INVALID_REG) { in emit_const()
170 int idx = kernel->buf_addr_regs[i]; in emit_const()
173 replacements[idx] = kernel->bufs[i]; in emit_const()
202 cs_const_emit(struct fd_ringbuffer *ring, struct kernel *kernel, in cs_const_emit() argument
205 struct ir3_kernel *ir3_kernel = to_ir3_kernel(kernel); in cs_const_emit()
222 emit_const(ring, kernel, base, size, const_state->immediates); in cs_const_emit()
228 struct kernel *kernel) in cs_ibo_emit() argument
230 OUT_PKT3(ring, CP_LOAD_STATE4, 2 + (4 * kernel->num_bufs)); in cs_ibo_emit()
234 CP_LOAD_STATE4_0_NUM_UNIT(kernel->num_bufs)); in cs_ibo_emit()
237 for (unsigned i = 0; i < kernel->num_bufs; i++) { in cs_ibo_emit()
238 OUT_RELOC(ring, kernel->bufs[i], 0, 0, 0); in cs_ibo_emit()
244 OUT_RING(ring, kernel->buf_sizes[i]); in cs_ibo_emit()
245 OUT_RING(ring, kernel->buf_sizes[i]); in cs_ibo_emit()
250 OUT_PKT3(ring, CP_LOAD_STATE4, 2 + (2 * kernel->num_bufs)); in cs_ibo_emit()
254 CP_LOAD_STATE4_0_NUM_UNIT(kernel->num_bufs)); in cs_ibo_emit()
257 for (unsigned i = 0; i < kernel->num_bufs; i++) { in cs_ibo_emit()
258 unsigned sz = kernel->buf_sizes[i]; in cs_ibo_emit()
277 a4xx_emit_grid(struct kernel *kernel, uint32_t grid[3], in a4xx_emit_grid() argument
283 cs_program_emit(ring, kernel); in a4xx_emit_grid()
284 cs_const_emit(ring, kernel, grid); in a4xx_emit_grid()
285 cs_ibo_emit(ring, submit, kernel); in a4xx_emit_grid()
287 const unsigned *local_size = kernel->local_size; in a4xx_emit_grid()