Home
last modified time | relevance | path

Searched refs:PIPE_SHADER_COMPUTE (Results 1 – 25 of 132) sorted by relevance

123456

/third_party/mesa3d/src/gallium/auxiliary/util/
Du_compute.c112 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/frontends/clover/core/
Ddevice.cpp218 return pipe->get_shader_param(pipe, PIPE_SHADER_COMPUTE, in max_images_read()
224 return pipe->get_shader_param(pipe, PIPE_SHADER_COMPUTE, in max_images_write()
250 return pipe->get_shader_param(pipe, PIPE_SHADER_COMPUTE, in max_samplers()
274 return pipe->get_shader_param(pipe, PIPE_SHADER_COMPUTE, in max_const_buffer_size()
280 return pipe->get_shader_param(pipe, PIPE_SHADER_COMPUTE, in max_const_buffers()
341 return pipe->get_shader_param(pipe, PIPE_SHADER_COMPUTE, in has_halves()
347 return pipe->get_shader_param(pipe, PIPE_SHADER_COMPUTE, in has_int64_atomics()
470 return pipe->get_shader_param(pipe, PIPE_SHADER_COMPUTE, in supports_ir()
523 return pipe->get_compiler_options(pipe, ir, PIPE_SHADER_COMPUTE); in get_compiler_options()
Dkernel.cpp84 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/softpipe/
Dsp_compute.c202 machines[idx] = tgsi_exec_machine_create(PIPE_SHADER_COMPUTE); in softpipe_launch_grid()
211 (struct tgsi_sampler *)softpipe->tgsi.sampler[PIPE_SHADER_COMPUTE], in softpipe_launch_grid()
212 (struct tgsi_image *)softpipe->tgsi.image[PIPE_SHADER_COMPUTE], in softpipe_launch_grid()
213 (struct tgsi_buffer *)softpipe->tgsi.buffer[PIPE_SHADER_COMPUTE]); in softpipe_launch_grid()
215 softpipe->mapped_constants[PIPE_SHADER_COMPUTE], in softpipe_launch_grid()
216 softpipe->const_buffer_size[PIPE_SHADER_COMPUTE]); in softpipe_launch_grid()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_compute_blit.c127 const unsigned cs_mask = SI_BIND_CONSTANT_BUFFER(PIPE_SHADER_COMPUTE) | in si_improve_sync_flags()
128 SI_BIND_SHADER_BUFFER(PIPE_SHADER_COMPUTE) | in si_improve_sync_flags()
129 SI_BIND_IMAGE_BUFFER(PIPE_SHADER_COMPUTE) | in si_improve_sync_flags()
130 SI_BIND_SAMPLER_BUFFER(PIPE_SHADER_COMPUTE); in si_improve_sync_flags()
204 unsigned enabled_mask = sctx->images[PIPE_SHADER_COMPUTE].enabled_mask; in si_launch_grid_internal()
207 … if (sctx->images[PIPE_SHADER_COMPUTE].views[i].access & SI_IMAGE_ACCESS_ALLOW_DCC_STORE) { in si_launch_grid_internal()
231 si_get_shader_buffers(sctx, PIPE_SHADER_COMPUTE, 0, num_buffers, saved_sb); in si_launch_grid_internal_ssbos()
235 if (sctx->const_and_shader_buffers[PIPE_SHADER_COMPUTE].writable_mask & in si_launch_grid_internal_ssbos()
241 si_set_shader_buffers(&sctx->b, PIPE_SHADER_COMPUTE, 0, num_buffers, buffers, in si_launch_grid_internal_ssbos()
256 sctx->b.set_shader_buffers(&sctx->b, PIPE_SHADER_COMPUTE, 0, num_buffers, saved_sb, in si_launch_grid_internal_ssbos()
[all …]
Dsi_shaderlib_nir.c89 sctx->b.screen->get_compiler_options(sctx->b.screen, PIPE_SHADER_IR_NIR, PIPE_SHADER_COMPUTE); in si_create_copy_image_cs()
142 sctx->b.screen->get_compiler_options(sctx->b.screen, PIPE_SHADER_IR_NIR, PIPE_SHADER_COMPUTE); in si_create_dcc_retile_cs()
190 sctx->b.screen->get_compiler_options(sctx->b.screen, PIPE_SHADER_IR_NIR, PIPE_SHADER_COMPUTE); in gfx9_create_clear_dcc_msaa_cs()
237 sctx->b.screen->get_compiler_options(sctx->b.screen, PIPE_SHADER_IR_NIR, PIPE_SHADER_COMPUTE); in si_create_clear_buffer_rmw_cs()
/third_party/mesa3d/src/gallium/auxiliary/vl/
Dvl_compositor_cs.c600 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/iris/
Diris_pipe.h38 [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/
Dcrocus_pipe.h38 [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/
Dtgsi_from_mesa.h77 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/frontends/lavapipe/
Dlvp_execute.c222 bool is_compute = pstage == PIPE_SHADER_COMPUTE; in get_pcbuf_size()
268 bool is_compute = sh == PIPE_SHADER_COMPUTE; in update_inline_shader_state()
347 case PIPE_SHADER_COMPUTE: in update_inline_shader_state()
356 if (state->iv_dirty[PIPE_SHADER_COMPUTE]) { in emit_compute_state()
357 state->pctx->set_shader_images(state->pctx, PIPE_SHADER_COMPUTE, in emit_compute_state()
358 0, state->num_shader_images[PIPE_SHADER_COMPUTE], in emit_compute_state()
359 0, state->iv[PIPE_SHADER_COMPUTE]); in emit_compute_state()
360 state->iv_dirty[PIPE_SHADER_COMPUTE] = false; in emit_compute_state()
363 bool pcbuf_dirty = state->pcbuf_dirty[PIPE_SHADER_COMPUTE]; in emit_compute_state()
364 if (state->pcbuf_dirty[PIPE_SHADER_COMPUTE]) in emit_compute_state()
[all …]
/third_party/mesa3d/src/gallium/drivers/d3d12/
Dd3d12_compute_transforms.cpp314 pipe_resource_reference(&save->cbuf0.buffer, ctx->cbufs[PIPE_SHADER_COMPUTE][1].buffer); in d3d12_save_compute_transform_state()
315 save->cbuf0 = ctx->cbufs[PIPE_SHADER_COMPUTE][1]; in d3d12_save_compute_transform_state()
318 … pipe_resource_reference(&save->ssbos[i].buffer, ctx->ssbo_views[PIPE_SHADER_COMPUTE][i].buffer); in d3d12_save_compute_transform_state()
319 save->ssbos[i] = ctx->ssbo_views[PIPE_SHADER_COMPUTE][i]; in d3d12_save_compute_transform_state()
328 ctx->base.set_constant_buffer(&ctx->base, PIPE_SHADER_COMPUTE, 1, true, &save->cbuf0); in d3d12_restore_compute_transform_state()
329 …ctx->base.set_shader_buffers(&ctx->base, PIPE_SHADER_COMPUTE, 0, ARRAY_SIZE(save->ssbos), save->ss… in d3d12_restore_compute_transform_state()
/third_party/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_draw.c525 &ctx->shaderbuf[PIPE_SHADER_COMPUTE]; in fd_launch_grid()
542 u_foreach_bit (i, ctx->shaderimg[PIPE_SHADER_COMPUTE].enabled_mask) { in fd_launch_grid()
543 struct pipe_image_view *img = &ctx->shaderimg[PIPE_SHADER_COMPUTE].si[i]; in fd_launch_grid()
551 u_foreach_bit (i, ctx->constbuf[PIPE_SHADER_COMPUTE].enabled_mask) in fd_launch_grid()
552 resource_read(batch, ctx->constbuf[PIPE_SHADER_COMPUTE].cb[i].buffer); in fd_launch_grid()
555 u_foreach_bit (i, ctx->tex[PIPE_SHADER_COMPUTE].valid_textures) in fd_launch_grid()
556 resource_read(batch, ctx->tex[PIPE_SHADER_COMPUTE].textures[i]->texture); in fd_launch_grid()
/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_pipe_constants.c98 else if (shader == PIPE_SHADER_COMPUTE) in svga_set_constant_buffer()
111 else if (shader == PIPE_SHADER_COMPUTE) in svga_set_constant_buffer()
Dsvga_state_uav.c368 first_shader = PIPE_SHADER_COMPUTE; in svga_create_uav_list()
369 last_shader = PIPE_SHADER_COMPUTE; in svga_create_uav_list()
605 first_shader = PIPE_SHADER_COMPUTE; in svga_save_uav_state()
606 last_shader = PIPE_SHADER_COMPUTE; in svga_save_uav_state()
712 shader < PIPE_SHADER_COMPUTE; shader++) { in need_to_set_uav()
820 enum pipe_shader_type shader = PIPE_SHADER_COMPUTE; in need_to_set_cs_uav()
Dsvga_state_constants.c404 PIPE_SHADER_COMPUTE, in svga_get_extra_cs_constants()
908 shader == PIPE_SHADER_COMPUTE); in emit_consts_vgpu10()
933 case PIPE_SHADER_COMPUTE: in emit_consts_vgpu10()
1394 ret = emit_consts_vgpu10(svga, PIPE_SHADER_COMPUTE); in emit_cs_consts()
1414 ret = emit_constbuf_vgpu10(svga, PIPE_SHADER_COMPUTE); in emit_cs_constbuf()
1519 unsigned rawbuf_mask = svga->state.raw_constbufs[PIPE_SHADER_COMPUTE]; in update_cs_rawbuf()
1521 update_rawbuf_mask(svga, PIPE_SHADER_COMPUTE); in update_cs_rawbuf()
1527 if (svga->state.raw_constbufs[PIPE_SHADER_COMPUTE] != rawbuf_mask) in update_cs_rawbuf()
Dsvga_draw.c364 first_shader = PIPE_SHADER_COMPUTE; in svga_validate_sampler_resources()
365 last_shader = PIPE_SHADER_COMPUTE; in svga_validate_sampler_resources()
447 first_shader = PIPE_SHADER_COMPUTE; in svga_validate_constant_buffers()
448 last_shader = PIPE_SHADER_COMPUTE; in svga_validate_constant_buffers()
548 first_shader = PIPE_SHADER_COMPUTE; in svga_validate_image_views()
549 last_shader = PIPE_SHADER_COMPUTE; in svga_validate_image_views()
587 first_shader = PIPE_SHADER_COMPUTE; in svga_validate_shader_buffers()
588 last_shader = PIPE_SHADER_COMPUTE; in svga_validate_shader_buffers()
/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_context.c601 …[shader][slot].imageLayout = get_layout_for_binding(ctx, res, type, shader == PIPE_SHADER_COMPUTE); in update_descriptor_state_sampler()
675 if (pstage == PIPE_SHADER_COMPUTE) in update_nonseamless_shader_key()
1222 if (shader == PIPE_SHADER_COMPUTE) { in zink_set_inlinable_constants()
1257 res->ubo_bind_count[pstage == PIPE_SHADER_COMPUTE]--; in unbind_ubo()
1259 if (!res->ubo_bind_count[pstage == PIPE_SHADER_COMPUTE]) in unbind_ubo()
1260 res->barrier_access[pstage == PIPE_SHADER_COMPUTE] &= ~VK_ACCESS_UNIFORM_READ_BIT; in unbind_ubo()
1261 update_res_bind_count(ctx, res, pstage == PIPE_SHADER_COMPUTE, true); in unbind_ubo()
1272 if (pstage == PIPE_SHADER_COMPUTE) in invalidate_inlined_uniforms()
1302 new_res->ubo_bind_count[shader == PIPE_SHADER_COMPUTE]++; in zink_set_constant_buffer()
1305 new_res->barrier_access[shader == PIPE_SHADER_COMPUTE] |= VK_ACCESS_UNIFORM_READ_BIT; in zink_set_constant_buffer()
[all …]
/third_party/mesa3d/src/gallium/drivers/panfrost/
Dpan_compute.c86 ctx->shader[PIPE_SHADER_COMPUTE] = cso; in panfrost_bind_compute_state()
121 panfrost_batch_write_rsrc(batch, rsrc, PIPE_SHADER_COMPUTE); in panfrost_set_global_binding()
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_state_cs.c496 …ipe->screen->get_compiler_options(pipe->screen, PIPE_SHADER_IR_NIR, PIPE_SHADER_COMPUTE), &reader); in llvmpipe_create_compute_state()
619 lp->samplers[PIPE_SHADER_COMPUTE][i]); in make_variant_key()
637 lp->sampler_views[PIPE_SHADER_COMPUTE][i]); in make_variant_key()
646 lp->sampler_views[PIPE_SHADER_COMPUTE][i]); in make_variant_key()
660 &lp->images[PIPE_SHADER_COMPUTE][i]); in make_variant_key()
1283 ARRAY_SIZE(llvmpipe->constants[PIPE_SHADER_COMPUTE]), in llvmpipe_cs_update_derived()
1284 llvmpipe->constants[PIPE_SHADER_COMPUTE]); in llvmpipe_cs_update_derived()
1290 ARRAY_SIZE(llvmpipe->ssbos[PIPE_SHADER_COMPUTE]), in llvmpipe_cs_update_derived()
1291 llvmpipe->ssbos[PIPE_SHADER_COMPUTE]); in llvmpipe_cs_update_derived()
1297 llvmpipe->num_sampler_views[PIPE_SHADER_COMPUTE], in llvmpipe_cs_update_derived()
[all …]
/third_party/mesa3d/src/gallium/drivers/v3d/
Dv3dx_draw.c188 s == PIPE_SHADER_COMPUTE); in v3d_predraw_check_stage_inputs()
197 s == PIPE_SHADER_COMPUTE); in v3d_predraw_check_stage_inputs()
207 s == PIPE_SHADER_COMPUTE); in v3d_predraw_check_stage_inputs()
217 s == PIPE_SHADER_COMPUTE); in v3d_predraw_check_stage_inputs()
345 for (int s = 0; s < PIPE_SHADER_COMPUTE; s++) { in v3d_emit_wait_for_tf_if_needed()
1001 for (int s = 0; s < PIPE_SHADER_COMPUTE; s++) in v3d_draw_vbo()
1049 for (int s = 0; s < PIPE_SHADER_COMPUTE; s++) { in v3d_draw_vbo()
1338 v3d_predraw_check_stage_inputs(pctx, PIPE_SHADER_COMPUTE); in v3d_launch_grid()
1452 PIPE_SHADER_COMPUTE); in v3d_launch_grid()
1492 u_foreach_bit(i, v3d->ssbo[PIPE_SHADER_COMPUTE].enabled_mask) { in v3d_launch_grid()
[all …]
/third_party/mesa3d/src/mesa/state_tracker/
Dst_pbo_compute.c814 pipe->set_constant_buffer(pipe, PIPE_SHADER_COMPUTE, 0, false, &cb); in download_texture_compute()
937 pipe->set_sampler_views(pipe, PIPE_SHADER_COMPUTE, 0, 1, 0, false, in download_texture_compute()
939 st->state.num_sampler_views[PIPE_SHADER_COMPUTE] = in download_texture_compute()
940 MAX2(st->state.num_sampler_views[PIPE_SHADER_COMPUTE], 1); in download_texture_compute()
944 cso_set_samplers(cso, PIPE_SHADER_COMPUTE, 1, samplers); in download_texture_compute()
969 pipe->set_shader_buffers(pipe, PIPE_SHADER_COMPUTE, 0, 1, &buffer, 0x1); in download_texture_compute()
990 pipe->set_sampler_views(pipe, PIPE_SHADER_COMPUTE, 0, 0, in download_texture_compute()
991 st->state.num_sampler_views[PIPE_SHADER_COMPUTE], in download_texture_compute()
993 st->state.num_sampler_views[PIPE_SHADER_COMPUTE] = 0; in download_texture_compute()
994 pipe->set_shader_buffers(pipe, PIPE_SHADER_COMPUTE, 0, 1, NULL, 0); in download_texture_compute()
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/
Dnvc0_program.c556 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/frontends/omx/
Dvid_enc_common.c464 pipe->set_shader_images(pipe, PIPE_SHADER_COMPUTE, 0, 3, 0, image); in enc_LoadImage_common()
472 pipe->set_constant_buffer(pipe, PIPE_SHADER_COMPUTE, 0, false, &cb); in enc_LoadImage_common()
501 pipe->set_shader_images(pipe, PIPE_SHADER_COMPUTE, 0, 0, 3, NULL); in enc_LoadImage_common()
502 pipe->set_constant_buffer(pipe, PIPE_SHADER_COMPUTE, 0, false, NULL); in enc_LoadImage_common()
/third_party/mesa3d/src/nouveau/codegen/
Dnv50_ir_serialize.cpp52 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()

123456