Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
radeonsi/nir: set TGSI_PROPERTY_NEXT_SHADER
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
  • Loading branch information
tarceri committed Apr 2, 2018
1 parent 2ca5d95 commit 7aad5e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gallium/drivers/radeonsi/si_shader_nir.c
Expand Up @@ -244,6 +244,9 @@ void si_nir_scan_shader(const struct nir_shader *nir,
info->num_tokens = 2; /* indicate that the shader is non-empty */
info->num_instructions = 2;

info->properties[TGSI_PROPERTY_NEXT_SHADER] =
pipe_shader_type_from_mesa(nir->info.next_stage);

if (nir->info.stage == MESA_SHADER_TESS_CTRL) {
info->properties[TGSI_PROPERTY_TCS_VERTICES_OUT] =
nir->info.tess.tcs_vertices_out;
Expand Down

0 comments on commit 7aad5e1

Please sign in to comment.