summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5151421)
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6340>
ac_add_arg(&ctx->args, AC_ARG_VGPR, 1, AC_ARG_INT, ¶m_local_id);
/* Create the compute shader function. */
ac_add_arg(&ctx->args, AC_ARG_VGPR, 1, AC_ARG_INT, ¶m_local_id);
/* Create the compute shader function. */
- unsigned old_type = ctx->type;
gl_shader_stage old_stage = ctx->stage;
gl_shader_stage old_stage = ctx->stage;
- ctx->type = PIPE_SHADER_COMPUTE;
ctx->stage = MESA_SHADER_COMPUTE;
si_llvm_create_func(ctx, "prim_discard_cs", NULL, 0, THREADGROUP_SIZE);
ctx->stage = MESA_SHADER_COMPUTE;
si_llvm_create_func(ctx, "prim_discard_cs", NULL, 0, THREADGROUP_SIZE);
ctx->stage = old_stage;
if (VERTEX_COUNTER_GDS_MODE == 2) {
ctx->stage = old_stage;
if (VERTEX_COUNTER_GDS_MODE == 2) {
const struct si_shader_info *info = &sel->info;
ctx->shader = shader;
const struct si_shader_info *info = &sel->info;
ctx->shader = shader;
ctx->stage = sel->info.stage;
ctx->num_const_buffers = util_last_bit(info->const_buffers_declared);
ctx->stage = sel->info.stage;
ctx->num_const_buffers = util_last_bit(info->const_buffers_declared);
/* Reset the shader context. */
ctx.shader = shader;
/* Reset the shader context. */
ctx.shader = shader;
- ctx.type = PIPE_SHADER_TESS_CTRL;
ctx.stage = MESA_SHADER_TESS_CTRL;
si_build_wrapper_function(&ctx, parts + !vs_needs_prolog, 4 - !vs_needs_prolog,
ctx.stage = MESA_SHADER_TESS_CTRL;
si_build_wrapper_function(&ctx, parts + !vs_needs_prolog, 4 - !vs_needs_prolog,
/* Reset the shader context. */
ctx.shader = shader;
/* Reset the shader context. */
ctx.shader = shader;
- ctx.type = PIPE_SHADER_GEOMETRY;
ctx.stage = MESA_SHADER_GEOMETRY;
/* Prepare the array of shader parts. */
ctx.stage = MESA_SHADER_GEOMETRY;
/* Prepare the array of shader parts. */
shader.key.opt.ngg_culling & SI_NGG_CULL_GS_FAST_LAUNCH_ALL,
shader.key.opt.vs_as_prim_discard_cs));
ctx.shader = &shader;
shader.key.opt.ngg_culling & SI_NGG_CULL_GS_FAST_LAUNCH_ALL,
shader.key.opt.vs_as_prim_discard_cs));
ctx.shader = &shader;
- ctx.type = tgsi_processor_to_shader_stage(stage);
ctx.stage = stage;
build(&ctx, key);
ctx.stage = stage;
build(&ctx, key);
struct si_shader *shader;
struct si_screen *screen;
struct si_shader *shader;
struct si_screen *screen;
- unsigned type; /* PIPE_SHADER_* specifies the type of shader. */
gl_shader_stage stage;
/* For clamping the non-constant index in resource indexing: */
gl_shader_stage stage;
/* For clamping the non-constant index in resource indexing: */
si_get_wave_size(sscreen, MESA_SHADER_VERTEX,
false, false, false, false));
ctx.shader = shader;
si_get_wave_size(sscreen, MESA_SHADER_VERTEX,
false, false, false, false));
ctx.shader = shader;
- ctx.type = PIPE_SHADER_VERTEX;
ctx.stage = MESA_SHADER_VERTEX;
builder = ctx.ac.builder;
ctx.stage = MESA_SHADER_VERTEX;
builder = ctx.ac.builder;
LLVMBuildRetVoid(ctx.ac.builder);
LLVMBuildRetVoid(ctx.ac.builder);
- ctx.type = PIPE_SHADER_GEOMETRY; /* override for shader dumping */
ctx.stage = MESA_SHADER_GEOMETRY; /* override for shader dumping */
si_llvm_optimize_module(&ctx);
ctx.stage = MESA_SHADER_GEOMETRY; /* override for shader dumping */
si_llvm_optimize_module(&ctx);