/third_party/mesa3d/src/gallium/drivers/iris/ |
H A D | iris_pipe.h | 30 stage_from_pipe(enum pipe_shader_type pstage) in stage_from_pipe() argument 40 return stages[pstage]; in stage_from_pipe()
|
H A D | iris_screen.c | 657 enum pipe_shader_type pstage) in iris_get_compiler_options() 660 gl_shader_stage stage = stage_from_pipe(pstage); in iris_get_compiler_options() 655 iris_get_compiler_options(struct pipe_screen *pscreen, enum pipe_shader_ir ir, enum pipe_shader_type pstage) iris_get_compiler_options() argument
|
/third_party/mesa3d/src/gallium/drivers/crocus/ |
H A D | crocus_pipe.h | 30 stage_from_pipe(enum pipe_shader_type pstage) in stage_from_pipe() argument 40 return stages[pstage]; in stage_from_pipe()
|
H A D | crocus_screen.c | 652 enum pipe_shader_type pstage) in crocus_get_compiler_options() 655 gl_shader_stage stage = stage_from_pipe(pstage); in crocus_get_compiler_options() 650 crocus_get_compiler_options(struct pipe_screen *pscreen, enum pipe_shader_ir ir, enum pipe_shader_type pstage) crocus_get_compiler_options() argument
|
/third_party/mesa3d/src/gallium/drivers/zink/ |
H A D | zink_program.c | 97 enum pipe_shader_type pstage = pipe_shader_type_from_mesa(stage); in get_shader_module_for_stage() local 101 struct zink_shader_key *key = &state->shader_keys.key[pstage]; in get_shader_module_for_stage() 103 if (pstage == PIPE_SHADER_TESS_CTRL && !zs->is_generated) { in get_shader_module_for_stage() 108 ctx->inlinable_uniforms_valid_mask & BITFIELD64_BIT(pstage)) { in get_shader_module_for_stage() 109 if (zs->can_inline && (screen->is_cpu || prog->inlined_variant_count[pstage] < ZINK_MAX_INLINED_VARIANTS)) in get_shader_module_for_stage() 118 LIST_FOR_EACH_ENTRY_SAFE(iter, next, &prog->shader_cache[pstage][!!nonseamless_size][!!inline_size], list) { in get_shader_module_for_stage() 132 if (pstage == PIPE_SHADER_TESS_CTRL && zs->is_generated && zs->spirv) { in get_shader_module_for_stage() 159 if (pstage == PIPE_SHADER_TESS_CTRL && zs->is_generated) in get_shader_module_for_stage() 163 zm->default_variant = !inline_size && list_is_empty(&prog->shader_cache[pstage][0][0]); in get_shader_module_for_stage() 165 prog->inlined_variant_count[pstage] in get_shader_module_for_stage() [all...] |
H A D | zink_context.c | 672 update_nonseamless_shader_key(struct zink_context *ctx, enum pipe_shader_type pstage) in update_nonseamless_shader_key() argument 675 if (pstage == PIPE_SHADER_COMPUTE) in update_nonseamless_shader_key() 678 mask = &ctx->gfx_pipeline_state.shader_keys.key[pstage].base.nonseamless_cube_mask; in update_nonseamless_shader_key() 680 const uint32_t new_mask = ctx->di.emulate_nonseamless[pstage] & ctx->di.cubes[pstage]; in update_nonseamless_shader_key() 682 ctx->dirty_shader_stages |= BITFIELD_BIT(pstage); in update_nonseamless_shader_key() 1238 unbind_descriptor_stage(struct zink_resource *res, enum pipe_shader_type pstage) in unbind_descriptor_stage() argument 1240 if (!res->sampler_binds[pstage] && !res->image_binds[pstage]) in unbind_descriptor_stage() 1241 res->gfx_barrier &= ~zink_pipeline_flags_from_pipe_stage(pstage); in unbind_descriptor_stage() 1245 unbind_buffer_descriptor_stage(struct zink_resource *res, enum pipe_shader_type pstage) unbind_buffer_descriptor_stage() argument 1252 unbind_ubo(struct zink_context *ctx, struct zink_resource *res, enum pipe_shader_type pstage, unsigned slot) unbind_ubo() argument 1265 invalidate_inlined_uniforms(struct zink_context *ctx, enum pipe_shader_type pstage) invalidate_inlined_uniforms() argument 1357 unbind_descriptor_reads(struct zink_resource *res, enum pipe_shader_type pstage) unbind_descriptor_reads() argument 1364 unbind_buffer_descriptor_reads(struct zink_resource *res, enum pipe_shader_type pstage) unbind_buffer_descriptor_reads() argument 1371 unbind_ssbo(struct zink_context *ctx, struct zink_resource *res, enum pipe_shader_type pstage, unsigned slot, bool writable) unbind_ssbo() argument [all...] |
H A D | zink_context.h | 463 zink_pipeline_flags_from_pipe_stage(enum pipe_shader_type pstage) in zink_pipeline_flags_from_pipe_stage() argument 465 switch (pstage) { in zink_pipeline_flags_from_pipe_stage()
|
H A D | zink_descriptors.c | 1296 enum pipe_shader_type pstage = shader ? pipe_shader_type_from_mesa(shader->nir->info.stage) : i; in update_push_ubo_descriptors() local 1297 VkDescriptorBufferInfo *info = &ctx->di.ubos[pstage][0]; in update_push_ubo_descriptors() 1298 unsigned dynamic_idx = is_compute ? 0 : tgsi_processor_to_shader_stage(pstage); in update_push_ubo_descriptors() 1307 const bool used = (pg->dd->push_usage & BITFIELD_BIT(pstage)) == BITFIELD_BIT(pstage); in update_push_ubo_descriptors() 1310 init_write_descriptor(NULL, desc_set, ZINK_DESCRIPTOR_TYPE_UBO, tgsi_processor_to_shader_stage(pstage), &wds[i], 0); in update_push_ubo_descriptors() 1313 desc_set_res_add(zds, ctx->di.descriptor_res[ZINK_DESCRIPTOR_TYPE_UBO][pstage][0], i, cache_hit); in update_push_ubo_descriptors()
|
H A D | zink_draw.cpp | 183 enum pipe_shader_type pstage = pipe_shader_type_from_mesa(ctx->last_vertex_stage->nir->info.stage); in update_gfx_program() local 184 ctx->dirty_shader_stages |= BITFIELD_BIT(pstage); in update_gfx_program() 185 memcpy(&ctx->gfx_pipeline_state.shader_keys.key[pstage].key.vs_base, in update_gfx_program()
|
H A D | zink_compiler.c | 3260 enum pipe_shader_type pstage = pipe_shader_type_from_mesa(shader->nir->info.stage); in zink_shader_free() local 3261 assert(pstage < ZINK_SHADER_COUNT); in zink_shader_free() 3273 prog->shaders[pstage] = NULL; in zink_shader_free()
|
/third_party/mesa3d/src/gallium/frontends/lavapipe/ |
H A D | lvp_execute.c | 220 get_pcbuf_size(struct rendering_state *state, enum pipe_shader_type pstage) in get_pcbuf_size() argument 222 bool is_compute = pstage == PIPE_SHADER_COMPUTE; in get_pcbuf_size() 223 return state->has_pcbuf[pstage] ? state->push_size[is_compute] : 0; in get_pcbuf_size() 227 calc_ubo0_size(struct rendering_state *state, enum pipe_shader_type pstage) in calc_ubo0_size() argument 229 unsigned size = get_pcbuf_size(state, pstage); in calc_ubo0_size() 230 for (unsigned i = 0; i < state->uniform_blocks[pstage].count; i++) in calc_ubo0_size() 231 size += state->uniform_blocks[pstage].size[i]; in calc_ubo0_size() 236 fill_ubo0(struct rendering_state *state, uint8_t *mem, enum pipe_shader_type pstage) in fill_ubo0() argument 238 unsigned push_size = get_pcbuf_size(state, pstage); in fill_ubo0() 243 for (unsigned i = 0; i < state->uniform_blocks[pstage] in fill_ubo0() 251 update_pcbuf(struct rendering_state *state, enum pipe_shader_type pstage) update_pcbuf() argument 980 enum pipe_shader_type pstage = pipe_shader_type_from_mesa(stage); handle_pipeline_access() local [all...] |
H A D | lvp_pipeline.c | 887 enum pipe_shader_type pstage = pipe_shader_type_from_mesa(stage); in lvp_graphics_pipeline_init() local 889 pipeline->shader_cso[pstage] = lvp_pipeline_compile(pipeline, in lvp_graphics_pipeline_init()
|