From: Juan A. Suarez Romero Date: Fri, 15 Apr 2016 10:30:54 +0000 (+0200) Subject: nir: add double input bitmap X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=80535873bbed9d6fda7bb0d2cca3d0950afb8431;p=mesa.git nir: add double input bitmap This bitmap tracks which input attributes are double-precision. Reviewed-by: Kenneth Graunke --- diff --git a/src/compiler/nir/glsl_to_nir.cpp b/src/compiler/nir/glsl_to_nir.cpp index d28fe41ad84..b25f0658898 100644 --- a/src/compiler/nir/glsl_to_nir.cpp +++ b/src/compiler/nir/glsl_to_nir.cpp @@ -152,6 +152,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 2cfca3ed80a..d4edea7b977 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -1704,6 +1704,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 */