radeonsi/nir: set TGSI_PROPERTY_NEXT_SHADER
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 26 Feb 2018 09:42:35 +0000 (20:42 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Mon, 2 Apr 2018 04:56:00 +0000 (14:56 +1000)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader_nir.c

index 994fee0b02cd5a7dba7fa43156fda9fdaa888035..437eefc54d0f289340bfb2bcfa4610c7e8e032ee 100644 (file)
@@ -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;