diff options
author | Kenneth Graunke <[email protected]> | 2015-10-09 15:49:49 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2015-11-10 01:03:43 -0800 |
commit | db54673b54ee7e2c49d5aa6f77d2fff3eed0aa24 (patch) | |
tree | 10a9d9b21f9dbe488bb37b641e4dc2cca5a0b078 /src/glsl/nir/glsl_to_nir.cpp | |
parent | 437d7b611972c52fac32cb54038d3b278f66fd5a (diff) |
nir: Store PatchInputsRead and PatchOutputsWritten in nir_shader_info.
These tessellation shader related fields need plumbing through NIR.
v2: Use uint32_t instead of uint64_t to match the source type of
GLbitfield (caught by Iago Toral).
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/glsl/nir/glsl_to_nir.cpp')
-rw-r--r-- | src/glsl/nir/glsl_to_nir.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/nir/glsl_to_nir.cpp b/src/glsl/nir/glsl_to_nir.cpp index facb9fa4a7a..ec6bdc8acb0 100644 --- a/src/glsl/nir/glsl_to_nir.cpp +++ b/src/glsl/nir/glsl_to_nir.cpp @@ -160,6 +160,8 @@ glsl_to_nir(const struct gl_shader_program *shader_prog, shader->info.num_images = sh->NumImages; shader->info.inputs_read = sh->Program->InputsRead; shader->info.outputs_written = sh->Program->OutputsWritten; + shader->info.patch_inputs_read = sh->Program->PatchInputsRead; + shader->info.patch_outputs_written = sh->Program->PatchOutputsWritten; shader->info.system_values_read = sh->Program->SystemValuesRead; shader->info.uses_texture_gather = sh->Program->UsesGather; shader->info.uses_clip_distance_out = |