[Mesa-dev] [PATCH v2] nir/gather_info: Set info.gs.uses_streams

Jason Ekstrand jason at jlekstrand.net
Thu Jul 26 16:13:37 UTC 2018


Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

On Tue, Jul 24, 2018 at 6:28 AM Alejandro PiƱeiro <apinheiro at igalia.com>
wrote:

> From: Neil Roberts <nroberts at igalia.com>
>
> Whenever a non-zero stream is written to it now sets uses_streams to
> true. This reflects the code in validate_geometry_shader_emissions for
> GLSL.
>
> v2: set uses_streams at gather_info instead that at spirv to nir
>     (Jason Ekstrand)
> ---
>  src/compiler/nir/nir_gather_info.c | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/src/compiler/nir/nir_gather_info.c
> b/src/compiler/nir/nir_gather_info.c
> index 2b431e343e9..d0b656ea741 100644
> --- a/src/compiler/nir/nir_gather_info.c
> +++ b/src/compiler/nir/nir_gather_info.c
> @@ -288,6 +288,11 @@ gather_intrinsic_info(nir_intrinsic_instr *instr,
> nir_shader *shader,
>     case nir_intrinsic_end_primitive_with_counter:
>        assert(shader->info.stage == MESA_SHADER_GEOMETRY);
>        shader->info.gs.uses_end_primitive = 1;
> +
> +   case nir_intrinsic_emit_vertex:
> +      if (nir_intrinsic_stream_id(instr) > 0)
> +         shader->info.gs.uses_streams = true;
> +
>        break;
>
>     default:
> --
> 2.14.1
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180726/57752fe6/attachment-0001.html>


More information about the mesa-dev mailing list