/external/mesa3d/src/gallium/drivers/r600/ |
D | r600_pipe.h | 125 unsigned num_dw; member 609 assert(cs->current.cdw + cb->num_dw <= cs->current.max_dw); in r600_emit_command_buffer() 610 memcpy(cs->current.buf + cs->current.cdw, cb->buf, 4 * cb->num_dw); in r600_emit_command_buffer() 611 cs->current.cdw += cb->num_dw; in r600_emit_command_buffer() 653 state->atom.num_dw = cb ? cb->num_dw : 0; in r600_set_cso_state_with_cb() 760 void r600_need_cs_space(struct r600_context *ctx, unsigned num_dw, boolean count_draw_in); 811 unsigned num_dw); 871 cb->buf[cb->num_dw++] = value; in r600_store_value() 876 assert(cb->num_dw+num <= cb->max_num_dw); in r600_store_array() 877 memcpy(&cb->buf[cb->num_dw], ptr, num * sizeof(ptr[0])); in r600_store_array() [all …]
|
D | eg_debug.c | 143 static uint32_t *ac_parse_packet3(FILE *f, uint32_t *ib, int *num_dw, in ac_parse_packet3() argument 268 *num_dw -= count + 2; in ac_parse_packet3() 285 static void eg_parse_ib(FILE *f, uint32_t *ib, int num_dw, int trace_id, in eg_parse_ib() argument 291 while (num_dw > 0) { in eg_parse_ib() 296 ib = ac_parse_packet3(f, ib, &num_dw, trace_id, in eg_parse_ib() 305 num_dw--; in eg_parse_ib() 316 if (num_dw < 0) { in eg_parse_ib() 343 eg_parse_ib(f, rctx->last_gfx.ib, rctx->last_gfx.num_dw, in eg_dump_last_ib()
|
D | r600_hw_context.c | 33 void r600_need_cs_space(struct r600_context *ctx, unsigned num_dw, in r600_need_cs_space() argument 58 num_dw += ctx->atoms[u_bit_scan64(&mask)]->num_dw; in r600_need_cs_space() 61 num_dw += R600_MAX_FLUSH_CS_DWORDS + R600_MAX_DRAW_CS_DWORDS; in r600_need_cs_space() 65 num_dw += ctx->b.num_cs_dw_queries_suspend; in r600_need_cs_space() 69 num_dw += ctx->b.streamout.num_dw_for_end; in r600_need_cs_space() 74 num_dw += 3; in r600_need_cs_space() 78 num_dw += R600_MAX_FLUSH_CS_DWORDS; in r600_need_cs_space() 81 num_dw += 10; in r600_need_cs_space() 84 if (!ctx->b.ws->cs_check_space(ctx->b.gfx.cs, num_dw)) { in r600_need_cs_space()
|
D | r600_streamout.c | 96 begin->num_dw = 12; /* flush_vgt_streamout */ in r600_streamout_buffers_dirty() 98 begin->num_dw += num_bufs * 7; /* SET_CONTEXT_REG */ in r600_streamout_buffers_dirty() 101 begin->num_dw += num_bufs * 5; /* STRMOUT_BASE_UPDATE */ in r600_streamout_buffers_dirty() 103 begin->num_dw += in r600_streamout_buffers_dirty() 364 rctx->streamout.enable_atom.num_dw = 6; in r600_streamout_init()
|
D | r600_pipe_common.h | 427 unsigned num_dw; member 499 unsigned num_dw; member 628 void (*need_gfx_cs_space)(struct pipe_context *ctx, unsigned num_dw, 708 void r600_need_dma_space(struct r600_common_context *ctx, unsigned num_dw,
|
D | r600_query.c | 1746 atom->num_dw = 0; in r600_render_condition() 1749 atom->num_dw += (qbuf->results_end / rquery->result_size) * 5; in r600_render_condition() 1752 atom->num_dw *= R600_MAX_STREAMS; in r600_render_condition() 1776 unsigned num_dw = 0; in r600_queries_num_cs_dw_for_resuming() local 1780 num_dw += query->num_cs_dw_begin + query->num_cs_dw_end; in r600_queries_num_cs_dw_for_resuming() 1787 num_dw += query->num_cs_dw_end; in r600_queries_num_cs_dw_for_resuming() 1790 num_dw += ctx->streamout.enable_atom.num_dw; in r600_queries_num_cs_dw_for_resuming() 1792 num_dw += 13; in r600_queries_num_cs_dw_for_resuming() 1794 return num_dw; in r600_queries_num_cs_dw_for_resuming()
|
D | r600_state_common.c | 40 void r600_init_command_buffer(struct r600_command_buffer *cb, unsigned num_dw) in r600_init_command_buffer() argument 43 cb->buf = CALLOC(1, 4 * num_dw); in r600_init_command_buffer() 44 cb->max_num_dw = num_dw; in r600_init_command_buffer() 66 unsigned num_dw) in r600_init_atom() argument 69 atom->num_dw = num_dw; in r600_init_atom() 431 state->atom.num_dw = in r600_sampler_states_dirty() 552 rctx->vertex_buffer_state.atom.num_dw = (rctx->b.chip_class >= EVERGREEN ? 12 : 11) * in r600_vertex_buffers_dirty() 608 state->atom.num_dw = (rctx->b.chip_class >= EVERGREEN ? 14 : 13) * in r600_sampler_views_dirty() 1140 state->atom.num_dw = rctx->b.chip_class >= EVERGREEN ? util_bitcount(state->dirty_mask)*20 in r600_constant_buffers_dirty() 1458 state->atom.num_dw = shader->command_buffer.num_dw; in update_shader_atom() [all …]
|
D | r600_pipe_common.c | 250 void r600_need_dma_space(struct r600_common_context *ctx, unsigned num_dw, in r600_need_dma_space() argument 287 num_dw++; /* for emit_wait_idle below */ in r600_need_dma_space() 288 if (!ctx->ws->cs_check_space(ctx->dma.cs, num_dw) || in r600_need_dma_space() 292 assert((num_dw + ctx->dma.cs->current.cdw) <= ctx->dma.cs->current.max_dw); in r600_need_dma_space() 507 saved->num_dw = cs->prev_dw + cs->current.cdw; in radeon_save_cs() 508 saved->ib = MALLOC(4 * saved->num_dw); in radeon_save_cs()
|
D | r600_viewport.c | 451 rctx->scissors.atom.num_dw = (2 + 16 * 2) + 6; in r600_init_viewport_functions() 452 rctx->viewports.atom.num_dw = 2 + 16 * 6; in r600_init_viewport_functions()
|
D | r600_state.c | 374 memcpy(blend->buffer_no_blend.buf, blend->buffer.buf, blend->buffer.num_dw * 4); in r600_create_blend_state_mode() 375 blend->buffer_no_blend.num_dw = blend->buffer.num_dw; in r600_create_blend_state_mode() 1201 rctx->framebuffer.atom.num_dw = in r600_set_framebuffer_state() 1205 rctx->framebuffer.atom.num_dw += 15 * rctx->framebuffer.state.nr_cbufs; in r600_set_framebuffer_state() 1206 rctx->framebuffer.atom.num_dw += 3 * (2 + rctx->framebuffer.state.nr_cbufs); in r600_set_framebuffer_state() 1209 rctx->framebuffer.atom.num_dw += 16; in r600_set_framebuffer_state() 1211 rctx->framebuffer.atom.num_dw += 3; in r600_set_framebuffer_state() 1214 rctx->framebuffer.atom.num_dw += 2; in r600_set_framebuffer_state() 2446 cb->num_dw = 0; in r600_update_ps_state()
|
D | evergreen_state.c | 367 memcpy(blend->buffer_no_blend.buf, blend->buffer.buf, blend->buffer.num_dw * 4); in evergreen_create_blend_state_mode() 368 blend->buffer_no_blend.num_dw = blend->buffer.num_dw; in evergreen_create_blend_state_mode() 1550 rctx->framebuffer.atom.num_dw = 4; /* SCISSOR */ in evergreen_set_framebuffer_state() 1554 rctx->framebuffer.atom.num_dw += 17; /* Evergreen */ in evergreen_set_framebuffer_state() 1556 rctx->framebuffer.atom.num_dw += 28; /* Cayman */ in evergreen_set_framebuffer_state() 1559 rctx->framebuffer.atom.num_dw += state->nr_cbufs * 23; in evergreen_set_framebuffer_state() 1560 rctx->framebuffer.atom.num_dw += state->nr_cbufs * 2; in evergreen_set_framebuffer_state() 1561 rctx->framebuffer.atom.num_dw += (12 - state->nr_cbufs) * 3; in evergreen_set_framebuffer_state() 1565 rctx->framebuffer.atom.num_dw += 24; in evergreen_set_framebuffer_state() 1566 rctx->framebuffer.atom.num_dw += 2; in evergreen_set_framebuffer_state() [all …]
|
D | evergreen_compute.c | 712 rctx->cs_shader_state.atom.num_dw = current->command_buffer.num_dw; in compute_emit_cs() 764 …rctx->cs_vertex_buffer_state.atom.num_dw = 12 * util_bitcount(rctx->cs_vertex_buffer_state.dirty_m… in compute_emit_cs()
|
/external/mesa3d/src/amd/common/ |
D | ac_debug.c | 59 unsigned num_dw; member 176 if (ib->cur_dw < ib->num_dw) { in ac_ib_get() 402 ib->num_dw = G_3F2_IB_SIZE(control_dw); in ac_parse_packet3() 410 ib_recurse.num_dw = G_3F2_IB_SIZE(control_dw); in ac_parse_packet3() 433 } else if (count == 0 && ib->cur_dw < ib->num_dw && in ac_parse_packet3() 486 while (ib->cur_dw < ib->num_dw) { in ac_do_parse_ib() 559 void ac_parse_ib_chunk(FILE *f, uint32_t *ib_ptr, int num_dw, const int *trace_ids, in ac_parse_ib_chunk() argument 565 ib.num_dw = num_dw; in ac_parse_ib_chunk() 584 if (ib.cur_dw > ib.num_dw) { in ac_parse_ib_chunk() 604 void ac_parse_ib(FILE *f, uint32_t *ib, int num_dw, const int *trace_ids, in ac_parse_ib() argument [all …]
|
D | ac_debug.h | 57 void ac_parse_ib_chunk(FILE *f, uint32_t *ib, int num_dw, const int *trace_ids, 60 void ac_parse_ib(FILE *f, uint32_t *ib, int num_dw, const int *trace_ids,
|
/external/mesa3d/src/gallium/drivers/radeon/ |
D | r600_pipe_common.c | 169 void si_need_dma_space(struct r600_common_context *ctx, unsigned num_dw, in si_need_dma_space() argument 206 num_dw++; /* for emit_wait_idle below */ in si_need_dma_space() 207 if (!ctx->ws->cs_check_space(ctx->dma.cs, num_dw) || in si_need_dma_space() 211 assert((num_dw + ctx->dma.cs->current.cdw) <= ctx->dma.cs->current.max_dw); in si_need_dma_space() 288 saved->num_dw = cs->prev_dw + cs->current.cdw; in si_save_cs() 289 saved->ib = MALLOC(4 * saved->num_dw); in si_save_cs()
|
D | r600_pipe_common.h | 379 unsigned num_dw; member 516 void (*need_gfx_cs_space)(struct pipe_context *ctx, unsigned num_dw, 565 void si_need_dma_space(struct r600_common_context *ctx, unsigned num_dw,
|
D | radeon_winsys.h | 643 static inline bool radeon_emitted(struct radeon_winsys_cs *cs, unsigned num_dw) in radeon_emitted() argument 645 return cs && (cs->prev_dw + cs->current.cdw > num_dw); in radeon_emitted()
|
D | r600_query.c | 1852 unsigned num_dw = 0; in r600_queries_num_cs_dw_for_resuming() local 1856 num_dw += query->num_cs_dw_begin + query->num_cs_dw_end; in r600_queries_num_cs_dw_for_resuming() 1863 num_dw += query->num_cs_dw_end; in r600_queries_num_cs_dw_for_resuming() 1866 num_dw += 13; in r600_queries_num_cs_dw_for_resuming() 1868 return num_dw; in r600_queries_num_cs_dw_for_resuming()
|
/external/mesa3d/src/amd/vulkan/winsys/amdgpu/ |
D | radv_amdgpu_cs.c | 1139 int num_dw = cs->base.cdw; in radv_amdgpu_winsys_cs_dump() local 1143 num_dw = cs->ib.size; in radv_amdgpu_winsys_cs_dump() 1146 ac_parse_ib(file, ib, num_dw, trace_ids, trace_id_count, "main IB", in radv_amdgpu_winsys_cs_dump()
|
/external/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_debug.c | 1033 for (i = 0; i < saved->num_dw; ++i) { in si_dump_dma()
|
D | si_state.c | 4519 static void si_need_gfx_cs_space(struct pipe_context *ctx, unsigned num_dw, in si_need_gfx_cs_space() argument
|