[Mesa-dev] [PATCH 1/2] nir/gather_info: recognize load_patch_vertices_in as a system value

Marek Olšák maraeo at gmail.com
Tue Nov 21 19:00:25 UTC 2017


This patch:

Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Thu, Nov 16, 2017 at 8:53 AM, Iago Toral Quiroga <itoral at igalia.com> wrote:
> This intrinsic is produced to load SYSTEM_VALUE_VERTICES_IN, which is
> generated to load gl_PatchVerticesIn in the SPIR-V path for both
> Vulkan and OpenGL.
> ---
>  src/compiler/nir/nir_gather_info.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/compiler/nir/nir_gather_info.c b/src/compiler/nir/nir_gather_info.c
> index 13cdae39eca..a322af794e5 100644
> --- a/src/compiler/nir/nir_gather_info.c
> +++ b/src/compiler/nir/nir_gather_info.c
> @@ -246,6 +246,7 @@ gather_intrinsic_info(nir_intrinsic_instr *instr, nir_shader *shader)
>     case nir_intrinsic_load_tess_coord:
>     case nir_intrinsic_load_tess_level_outer:
>     case nir_intrinsic_load_tess_level_inner:
> +   case nir_intrinsic_load_patch_vertices_in:
>        shader->info.system_values_read |=
>           (1ull << nir_system_value_from_intrinsic(instr->intrinsic));
>        break;
> --
> 2.11.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list