[Mesa-dev] [PATCH 2/2] radeonsi/nir: set TGSI_PROPERTY_NEXT_SHADER
Marek Olšák
maraeo at gmail.com
Tue Feb 27 16:45:51 UTC 2018
On Mon, Feb 26, 2018 at 10:43 AM, Timothy Arceri <tarceri at itsqueeze.com> wrote:
> ---
> src/gallium/drivers/radeonsi/si_shader_nir.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/src/gallium/drivers/radeonsi/si_shader_nir.c b/src/gallium/drivers/radeonsi/si_shader_nir.c
> index d410a6c2d6..57f8dc6f03 100644
> --- a/src/gallium/drivers/radeonsi/si_shader_nir.c
> +++ b/src/gallium/drivers/radeonsi/si_shader_nir.c
> @@ -247,6 +247,15 @@ 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;
>
> + /* Set the next shader stage hint for VS and TES. */
> + if (!nir->info.separate_shader &&
radeonsi shouldn't use info.separate_shader, because all shaders are
separate in gallium.
Marek
More information about the mesa-dev
mailing list