/third_party/mesa3d/src/gallium/auxiliary/util/ |
D | u_compute.c | 112 ctx->set_constant_buffer(ctx, PIPE_SHADER_COMPUTE, 0, false, &cb); in util_compute_blit() 122 ctx->set_shader_images(ctx, PIPE_SHADER_COMPUTE, 0, 1, 0, &image); in util_compute_blit() 136 ctx->bind_sampler_states(ctx, PIPE_SHADER_COMPUTE, 0, 1, &sampler_state_p); in util_compute_blit() 142 ctx->set_sampler_views(ctx, PIPE_SHADER_COMPUTE, 0, 1, 0, false, &src_view); in util_compute_blit() 161 ctx->set_shader_images(ctx, PIPE_SHADER_COMPUTE, 0, 0, 1, NULL); in util_compute_blit() 162 ctx->set_constant_buffer(ctx, PIPE_SHADER_COMPUTE, 0, false, NULL); in util_compute_blit() 163 ctx->set_sampler_views(ctx, PIPE_SHADER_COMPUTE, 0, 0, 1, false, NULL); in util_compute_blit()
|
/third_party/mesa3d/src/gallium/drivers/softpipe/ |
D | sp_compute.c | 204 machines[idx] = tgsi_exec_machine_create(PIPE_SHADER_COMPUTE); in softpipe_launch_grid() 212 (struct tgsi_sampler *)softpipe->tgsi.sampler[PIPE_SHADER_COMPUTE], in softpipe_launch_grid() 213 (struct tgsi_image *)softpipe->tgsi.image[PIPE_SHADER_COMPUTE], in softpipe_launch_grid() 214 (struct tgsi_buffer *)softpipe->tgsi.buffer[PIPE_SHADER_COMPUTE]); in softpipe_launch_grid() 216 softpipe->mapped_constants[PIPE_SHADER_COMPUTE], in softpipe_launch_grid() 217 softpipe->const_buffer_size[PIPE_SHADER_COMPUTE]); in softpipe_launch_grid()
|
/third_party/mesa3d/src/gallium/auxiliary/vl/ |
D | vl_compositor_cs.c | 600 ctx->set_shader_images(c->pipe, PIPE_SHADER_COMPUTE, 0, 1, 0, &image); in cs_launch() 727 c->pipe->bind_sampler_states(c->pipe, PIPE_SHADER_COMPUTE, 0, in draw_layers() 729 c->pipe->set_sampler_views(c->pipe, PIPE_SHADER_COMPUTE, 0, in draw_layers() 735 c->pipe->set_shader_images(c->pipe, PIPE_SHADER_COMPUTE, 0, 0, 1, NULL); in draw_layers() 736 c->pipe->set_constant_buffer(c->pipe, PIPE_SHADER_COMPUTE, 0, false, NULL); in draw_layers() 740 c->pipe->bind_sampler_states(c->pipe, PIPE_SHADER_COMPUTE, 0, in draw_layers() 804 pipe_set_constant_buffer(c->pipe, PIPE_SHADER_COMPUTE, 0, s->shader_params); in vl_compositor_cs_render()
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_compute_blit.c | 129 si_get_shader_buffers(sctx, PIPE_SHADER_COMPUTE, 0, num_buffers, saved_sb); in si_launch_grid_internal_ssbos() 133 if (sctx->const_and_shader_buffers[PIPE_SHADER_COMPUTE].writable_mask & in si_launch_grid_internal_ssbos() 139 sctx->b.set_shader_buffers(&sctx->b, PIPE_SHADER_COMPUTE, 0, num_buffers, buffers, in si_launch_grid_internal_ssbos() 153 sctx->b.set_shader_buffers(&sctx->b, PIPE_SHADER_COMPUTE, 0, num_buffers, saved_sb, in si_launch_grid_internal_ssbos() 488 struct si_images *images = &sctx->images[PIPE_SHADER_COMPUTE]; in si_compute_copy_image() 521 ctx->set_shader_images(ctx, PIPE_SHADER_COMPUTE, 0, 2, 0, image); in si_compute_copy_image() 596 ctx->set_shader_images(ctx, PIPE_SHADER_COMPUTE, 0, 2, 0, saved_image); in si_compute_copy_image() 713 util_copy_image_view(&saved_image, &sctx->images[PIPE_SHADER_COMPUTE].views[0]); in si_compute_expand_fmask() 725 ctx->set_shader_images(ctx, PIPE_SHADER_COMPUTE, 0, 1, 0, &image); in si_compute_expand_fmask() 746 ctx->set_shader_images(ctx, PIPE_SHADER_COMPUTE, 0, 1, 0, &saved_image); in si_compute_expand_fmask() [all …]
|
D | si_shaderlib_nir.c | 59 sctx->b.screen->get_compiler_options(sctx->b.screen, PIPE_SHADER_IR_NIR, PIPE_SHADER_COMPUTE); in si_create_dcc_retile_cs() 107 sctx->b.screen->get_compiler_options(sctx->b.screen, PIPE_SHADER_IR_NIR, PIPE_SHADER_COMPUTE); in gfx9_create_clear_dcc_msaa_cs()
|
D | si_compute.c | 237 si_const_and_shader_buffer_descriptors_idx(PIPE_SHADER_COMPUTE); in si_create_compute_state() 239 si_sampler_and_image_descriptors_idx(PIPE_SHADER_COMPUTE); in si_create_compute_state() 867 struct si_samplers *samplers = &sctx->samplers[PIPE_SHADER_COMPUTE]; in si_check_needs_implicit_sync() 880 struct si_images *images = &sctx->images[PIPE_SHADER_COMPUTE]; in si_check_needs_implicit_sync() 922 si_decompress_textures(sctx, 1 << PIPE_SHADER_COMPUTE); in si_launch_grid() 1007 unsigned display_dcc_store_mask = sctx->images[PIPE_SHADER_COMPUTE].display_dcc_store_mask & in si_launch_grid() 1011 sctx->images[PIPE_SHADER_COMPUTE].views[u_bit_scan(&display_dcc_store_mask)].resource; in si_launch_grid()
|
/third_party/mesa3d/src/gallium/frontends/clover/core/ |
D | device.cpp | 254 return pipe->get_shader_param(pipe, PIPE_SHADER_COMPUTE, in max_samplers() 278 return pipe->get_shader_param(pipe, PIPE_SHADER_COMPUTE, in max_const_buffer_size() 284 return pipe->get_shader_param(pipe, PIPE_SHADER_COMPUTE, in max_const_buffers() 330 return pipe->get_shader_param(pipe, PIPE_SHADER_COMPUTE, in has_halves() 336 return pipe->get_shader_param(pipe, PIPE_SHADER_COMPUTE, in has_int64_atomics() 459 return pipe->get_shader_param(pipe, PIPE_SHADER_COMPUTE, in supports_ir() 512 return pipe->get_compiler_options(pipe, ir, PIPE_SHADER_COMPUTE); in get_compiler_options()
|
D | kernel.cpp | 84 q.pipe->bind_sampler_states(q.pipe, PIPE_SHADER_COMPUTE, in launch() 88 q.pipe->set_sampler_views(q.pipe, PIPE_SHADER_COMPUTE, 0, in launch() 90 q.pipe->set_shader_images(q.pipe, PIPE_SHADER_COMPUTE, 0, in launch() 108 q.pipe->set_shader_images(q.pipe, PIPE_SHADER_COMPUTE, 0, in launch() 110 q.pipe->set_sampler_views(q.pipe, PIPE_SHADER_COMPUTE, 0, in launch() 112 q.pipe->bind_sampler_states(q.pipe, PIPE_SHADER_COMPUTE, 0, in launch()
|
/third_party/mesa3d/src/gallium/drivers/iris/ |
D | iris_pipe.h | 38 [PIPE_SHADER_COMPUTE] = MESA_SHADER_COMPUTE, in stage_from_pipe() 52 [MESA_SHADER_COMPUTE] = PIPE_SHADER_COMPUTE, in stage_to_pipe()
|
/third_party/mesa3d/src/gallium/drivers/crocus/ |
D | crocus_pipe.h | 38 [PIPE_SHADER_COMPUTE] = MESA_SHADER_COMPUTE, in stage_from_pipe() 52 [MESA_SHADER_COMPUTE] = PIPE_SHADER_COMPUTE, in stage_to_pipe()
|
/third_party/mesa3d/src/gallium/auxiliary/tgsi/ |
D | tgsi_from_mesa.h | 77 return PIPE_SHADER_COMPUTE; in pipe_shader_type_from_mesa() 92 case PIPE_SHADER_COMPUTE: return MESA_SHADER_COMPUTE; in tgsi_processor_to_shader_stage()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/ |
D | freedreno_draw.c | 524 &ctx->shaderbuf[PIPE_SHADER_COMPUTE]; in fd_launch_grid() 541 u_foreach_bit (i, ctx->shaderimg[PIPE_SHADER_COMPUTE].enabled_mask) { in fd_launch_grid() 542 struct pipe_image_view *img = &ctx->shaderimg[PIPE_SHADER_COMPUTE].si[i]; in fd_launch_grid() 550 u_foreach_bit (i, ctx->constbuf[PIPE_SHADER_COMPUTE].enabled_mask) in fd_launch_grid() 551 resource_read(batch, ctx->constbuf[PIPE_SHADER_COMPUTE].cb[i].buffer); in fd_launch_grid() 554 u_foreach_bit (i, ctx->tex[PIPE_SHADER_COMPUTE].valid_textures) in fd_launch_grid() 555 resource_read(batch, ctx->tex[PIPE_SHADER_COMPUTE].textures[i]->texture); in fd_launch_grid()
|
/third_party/mesa3d/src/gallium/drivers/panfrost/ |
D | pan_compute.c | 87 ctx->shader[PIPE_SHADER_COMPUTE] = cso; in panfrost_bind_compute_state() 122 panfrost_batch_write_rsrc(batch, rsrc, PIPE_SHADER_COMPUTE); in panfrost_set_global_binding()
|
/third_party/mesa3d/src/gallium/drivers/v3d/ |
D | v3dx_draw.c | 184 s == PIPE_SHADER_COMPUTE); in v3d_predraw_check_stage_inputs() 193 s == PIPE_SHADER_COMPUTE); in v3d_predraw_check_stage_inputs() 203 s == PIPE_SHADER_COMPUTE); in v3d_predraw_check_stage_inputs() 213 s == PIPE_SHADER_COMPUTE); in v3d_predraw_check_stage_inputs() 341 for (int s = 0; s < PIPE_SHADER_COMPUTE; s++) { in v3d_emit_wait_for_tf_if_needed() 977 for (int s = 0; s < PIPE_SHADER_COMPUTE; s++) in v3d_draw_vbo() 1025 for (int s = 0; s < PIPE_SHADER_COMPUTE; s++) { in v3d_draw_vbo() 1314 v3d_predraw_check_stage_inputs(pctx, PIPE_SHADER_COMPUTE); in v3d_launch_grid() 1428 PIPE_SHADER_COMPUTE); in v3d_launch_grid() 1468 u_foreach_bit(i, v3d->ssbo[PIPE_SHADER_COMPUTE].enabled_mask) { in v3d_launch_grid() [all …]
|
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_state_cs.c | 473 …ipe->screen->get_compiler_options(pipe->screen, PIPE_SHADER_IR_NIR, PIPE_SHADER_COMPUTE), &reader); in llvmpipe_create_compute_state() 595 lp->samplers[PIPE_SHADER_COMPUTE][i]); in make_variant_key() 614 lp->sampler_views[PIPE_SHADER_COMPUTE][i]); in make_variant_key() 623 lp->sampler_views[PIPE_SHADER_COMPUTE][i]); in make_variant_key() 634 &lp->images[PIPE_SHADER_COMPUTE][i]); in make_variant_key() 1256 ARRAY_SIZE(llvmpipe->constants[PIPE_SHADER_COMPUTE]), in llvmpipe_cs_update_derived() 1257 llvmpipe->constants[PIPE_SHADER_COMPUTE]); in llvmpipe_cs_update_derived() 1263 ARRAY_SIZE(llvmpipe->ssbos[PIPE_SHADER_COMPUTE]), in llvmpipe_cs_update_derived() 1264 llvmpipe->ssbos[PIPE_SHADER_COMPUTE]); in llvmpipe_cs_update_derived() 1270 llvmpipe->num_sampler_views[PIPE_SHADER_COMPUTE], in llvmpipe_cs_update_derived() [all …]
|
/third_party/mesa3d/src/gallium/frontends/lavapipe/ |
D | lvp_execute.c | 181 if (state->iv_dirty[PIPE_SHADER_COMPUTE]) { in emit_compute_state() 182 state->pctx->set_shader_images(state->pctx, PIPE_SHADER_COMPUTE, in emit_compute_state() 183 0, state->num_shader_images[PIPE_SHADER_COMPUTE], in emit_compute_state() 184 0, state->iv[PIPE_SHADER_COMPUTE]); in emit_compute_state() 185 state->iv_dirty[PIPE_SHADER_COMPUTE] = false; in emit_compute_state() 188 if (state->pcbuf_dirty[PIPE_SHADER_COMPUTE]) { in emit_compute_state() 189 state->pctx->set_constant_buffer(state->pctx, PIPE_SHADER_COMPUTE, in emit_compute_state() 190 0, false, &state->pc_buffer[PIPE_SHADER_COMPUTE]); in emit_compute_state() 191 state->pcbuf_dirty[PIPE_SHADER_COMPUTE] = false; in emit_compute_state() 194 if (state->constbuf_dirty[PIPE_SHADER_COMPUTE]) { in emit_compute_state() [all …]
|
/third_party/mesa3d/src/gallium/frontends/omx/ |
D | vid_enc_common.c | 462 pipe->set_shader_images(pipe, PIPE_SHADER_COMPUTE, 0, 3, 0, image); in enc_LoadImage_common() 470 pipe->set_constant_buffer(pipe, PIPE_SHADER_COMPUTE, 0, false, &cb); in enc_LoadImage_common() 499 pipe->set_shader_images(pipe, PIPE_SHADER_COMPUTE, 0, 0, 3, NULL); in enc_LoadImage_common() 500 pipe->set_constant_buffer(pipe, PIPE_SHADER_COMPUTE, 0, false, NULL); in enc_LoadImage_common()
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/ |
D | nvc0_program.c | 556 if (prog->type != PIPE_SHADER_COMPUTE) { in nvc0_program_dump() 631 if (prog->type == PIPE_SHADER_COMPUTE) { in nvc0_program_translate() 718 case PIPE_SHADER_COMPUTE: in nvc0_program_translate() 776 const bool is_cp = prog->type == PIPE_SHADER_COMPUTE; in nvc0_program_alloc_code() 828 const bool is_cp = prog->type == PIPE_SHADER_COMPUTE; in nvc0_program_upload_code() 876 const bool is_cp = prog->type == PIPE_SHADER_COMPUTE; in nvc0_program_upload() 936 if (progs[i]->type == PIPE_SHADER_COMPUTE) { in nvc0_program_upload()
|
/third_party/mesa3d/src/gallium/drivers/nouveau/codegen/ |
D | nv50_ir_serialize.cpp | 52 if (info->type == PIPE_SHADER_COMPUTE) in nv50_ir_prog_info_serialize() 145 case PIPE_SHADER_COMPUTE: in nv50_ir_prog_info_out_serialize() 265 case PIPE_SHADER_COMPUTE: in nv50_ir_prog_info_out_deserialize()
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/ |
D | nv50_program.c | 261 case PIPE_SHADER_COMPUTE: in nv50_program_assign_varying_slots() 381 if (prog->type == PIPE_SHADER_COMPUTE) in nv50_program_translate() 441 if (prog->type == PIPE_SHADER_COMPUTE) { in nv50_program_translate() 480 case PIPE_SHADER_COMPUTE: heap = nv50->screen->fp_code_heap; break; in nv50_program_upload_code() 504 if (prog->type == PIPE_SHADER_COMPUTE) { in nv50_program_upload_code()
|
/third_party/mesa3d/src/gallium/drivers/zink/ |
D | zink_descriptors.c | 507 init_push_binding(&compute_binding, PIPE_SHADER_COMPUTE, vktype); in zink_descriptor_util_push_layouts_get() 1586 …struct zink_shader *zs = shader == PIPE_SHADER_COMPUTE ? ctx->compute_stage : ctx->gfx_stages[shad… in update_descriptor_stage_state() 1624 bool has_usage = zink_program_get_descriptor_usage(ctx, PIPE_SHADER_COMPUTE, type); in update_descriptor_state() 1626 …tor_states[is_compute].state[type] = update_descriptor_stage_state(ctx, PIPE_SHADER_COMPUTE, type); in update_descriptor_state() 1670 hash = calc_descriptor_state_hash_ubo(ctx, PIPE_SHADER_COMPUTE, 0, 0, false); in zink_context_update_descriptor_states() 1702 ctx->dd->push_state[shader == PIPE_SHADER_COMPUTE] = 0; in zink_context_invalidate_descriptor_state() 1703 ctx->dd->push_valid[shader == PIPE_SHADER_COMPUTE] = false; in zink_context_invalidate_descriptor_state() 1704 if (shader != PIPE_SHADER_COMPUTE) { in zink_context_invalidate_descriptor_state() 1708 ctx->dd->changed[shader == PIPE_SHADER_COMPUTE][ZINK_DESCRIPTOR_TYPES] = true; in zink_context_invalidate_descriptor_state() 1711 if (shader != PIPE_SHADER_COMPUTE) { in zink_context_invalidate_descriptor_state() [all …]
|
D | zink_context.c | 517 …tures[shader][slot].imageLayout = get_layout_for_binding(res, type, shader == PIPE_SHADER_COMPUTE); in update_descriptor_state_sampler() 1045 if (shader == PIPE_SHADER_COMPUTE) { in zink_set_inlinable_constants() 1067 res->ubo_bind_count[pstage == PIPE_SHADER_COMPUTE]--; in unbind_ubo() 1068 update_res_bind_count(ctx, res, pstage == PIPE_SHADER_COMPUTE, true); in unbind_ubo() 1079 if (pstage == PIPE_SHADER_COMPUTE) in invalidate_inlined_uniforms() 1109 new_res->ubo_bind_count[shader == PIPE_SHADER_COMPUTE]++; in zink_set_constant_buffer() 1111 update_res_bind_count(ctx, new_res, shader == PIPE_SHADER_COMPUTE, false); in zink_set_constant_buffer() 1166 update_res_bind_count(ctx, res, pstage == PIPE_SHADER_COMPUTE, true); in unbind_ssbo() 1168 res->write_bind_count[pstage == PIPE_SHADER_COMPUTE]--; in unbind_ssbo() 1196 update_res_bind_count(ctx, new_res, p_stage == PIPE_SHADER_COMPUTE, false); in zink_set_shader_buffers() [all …]
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a5xx/ |
D | fd5_image.c | 35 [PIPE_SHADER_COMPUTE] = SB4_CS_TEX, 40 [PIPE_SHADER_COMPUTE] = SB4_CS_SSBO,
|
/third_party/mesa3d/src/mesa/state_tracker/ |
D | st_atom_constbuf.c | 85 shader_type == PIPE_SHADER_COMPUTE); in st_upload_constants() 347 st_bind_ubos(st, prog, PIPE_SHADER_COMPUTE); in st_bind_cs_ubos()
|
/third_party/mesa3d/src/gallium/drivers/r600/ |
D | evergreen_compute.c | 196 rctx->b.b.set_constant_buffer(&rctx->b.b, PIPE_SHADER_COMPUTE, cb_index, false, &cb); in evergreen_cs_set_constant_buffer() 446 shader->sel = r600_create_shader_state_tokens(ctx, cso->prog, cso->ir_type, PIPE_SHADER_COMPUTE); in evergreen_create_compute_state() 772 rctx->driver_consts[PIPE_SHADER_COMPUTE].cs_block_grid_size_dirty = true; in compute_emit_cs() 778 eg_setup_buffer_constants(rctx, PIPE_SHADER_COMPUTE); in compute_emit_cs() 832 r600_emit_atom(rctx, &rctx->constbuf_state[PIPE_SHADER_COMPUTE].atom); in compute_emit_cs() 835 r600_emit_atom(rctx, &rctx->samplers[PIPE_SHADER_COMPUTE].states.atom); in compute_emit_cs() 838 r600_emit_atom(rctx, &rctx->samplers[PIPE_SHADER_COMPUTE].views.atom); in compute_emit_cs()
|