enum pipe_shader_ir ir_type,
const void *ir,
gl_shader_stage stage,
- struct panfrost_shader_state *state)
+ struct panfrost_shader_state *state,
+ uint64_t *outputs_written)
{
struct panfrost_screen *screen = pan_screen(ctx->base.screen);
uint8_t *dst;
state->reads_point_coord = false;
state->helper_invocations = s->info.fs.needs_helper_invocations;
+ if (outputs_written)
+ *outputs_written = s->info.outputs_written;
+
/* Separate as primary uniform count is truncated */
state->uniform_count = program.uniform_count;
panfrost_shader_compile(ctx, v->tripipe,
cso->ir_type, cso->prog,
- MESA_SHADER_COMPUTE, v);
+ MESA_SHADER_COMPUTE, v, NULL);
/* We finally have a variant, so compile it */
if (!shader_state->compiled) {
+ uint64_t outputs_written = 0;
+
panfrost_shader_compile(ctx, shader_state->tripipe,
variants->base.type,
variants->base.type == PIPE_SHADER_IR_NIR ?
variants->base.ir.nir :
variants->base.tokens,
- tgsi_processor_to_shader_stage(type), shader_state);
+ tgsi_processor_to_shader_stage(type), shader_state,
+ &outputs_written);
shader_state->compiled = true;
}
enum pipe_shader_ir ir_type,
const void *ir,
gl_shader_stage stage,
- struct panfrost_shader_state *state);
+ struct panfrost_shader_state *state,
+ uint64_t *outputs_written);
void
panfrost_pack_work_groups_compute(