[Mesa-dev] [PATCH 06/15] nir: add double input bitmap

Kenneth Graunke kenneth at whitecape.org
Tue May 10 06:43:37 UTC 2016


On Thursday, April 28, 2016 1:40:36 PM PDT Antia Puentes wrote:
> From: "Juan A. Suarez Romero" <jasuarez at igalia.com>
> 
> This bitmap tracks which input attributes are double-precision.
> ---
>  src/compiler/nir/glsl_to_nir.cpp | 1 +
>  src/compiler/nir/nir.h           | 2 ++
>  2 files changed, 3 insertions(+)
> 
> diff --git a/src/compiler/nir/glsl_to_nir.cpp b/src/compiler/nir/
glsl_to_nir.cpp
> index fafa8bb..b6d25cd 100644
> --- a/src/compiler/nir/glsl_to_nir.cpp
> +++ b/src/compiler/nir/glsl_to_nir.cpp
> @@ -154,6 +154,7 @@ glsl_to_nir(const struct gl_shader_program *shader_prog,
>     shader->info.num_ssbos = sh->NumShaderStorageBlocks;
>     shader->info.num_images = sh->NumImages;
>     shader->info.inputs_read = sh->Program->InputsRead;
> +   shader->info.double_inputs_read = sh->Program->DoubleInputsRead;
>     shader->info.outputs_written = sh->Program->OutputsWritten;
>     shader->info.patch_inputs_read = sh->Program->PatchInputsRead;
>     shader->info.patch_outputs_written = sh->Program->PatchOutputsWritten;
> diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
> index a3ac57d..4f773f1 100644
> --- a/src/compiler/nir/nir.h
> +++ b/src/compiler/nir/nir.h
> @@ -1693,6 +1693,8 @@ typedef struct nir_shader_info {
>  
>     /* Which inputs are actually read */
>     uint64_t inputs_read;
> +   /* Which inputs are actually read and are double */
> +   uint64_t double_inputs_read;
>     /* Which outputs are actually written */
>     uint64_t outputs_written;
>     /* Which system values are actually read */
> 

Patches 6-7 and 9 are:
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160509/2c23118e/attachment.sig>


More information about the mesa-dev mailing list