diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-08-07 10:26:12 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-08-13 09:43:17 -0700 |
commit | 5b0a1a4e49b49cb61d9369d3aaacfe1d124571c8 (patch) | |
tree | 84c5fce845d85598f178a6920bba66510c02a0e0 /src/gallium/drivers/panfrost/pan_context.c | |
parent | f714eab882d90f4b9c8643dc070cbc81a48bb323 (diff) |
panfrost: Route outputs_written through the compiler
It's there in shader_info, but we need to access it from pan_context.c
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Reviewed-by: Boris Brezillon <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_context.c')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_context.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index e6cbd057818..79995fa11c7 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -2118,12 +2118,15 @@ panfrost_bind_shader_state( /* 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; } |