nir: add double input bitmap
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Fri, 15 Apr 2016 10:30:54 +0000 (12:30 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 17 May 2016 07:05:54 +0000 (09:05 +0200)
This bitmap tracks which input attributes are double-precision.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/nir/glsl_to_nir.cpp
src/compiler/nir/nir.h

index d28fe41ad84253bcaf533cdebede504d890714c1..b25f06588988a288c318b87401eeb3d852b555c9 100644 (file)
@@ -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;
index 2cfca3ed80a846916a7ef383bdcfa4e08bd935fb..d4edea7b97788bf85b0527d35764e8723a5664b0 100644 (file)
@@ -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 */