diff options
author | Neil Roberts <[email protected]> | 2018-07-31 15:44:24 +0200 |
---|---|---|
committer | Alejandro Piñeiro <[email protected]> | 2018-08-13 16:28:27 +0200 |
commit | c91a5f70fb94d0d0e94441d82ea570b54a6f0ab9 (patch) | |
tree | 23cf3ba5d40c9af58e0216ea2d73f1026b1f50c9 /src/mesa/state_tracker | |
parent | a105c1e6e5a42e19b7aa083ec5d370a127cf7824 (diff) |
i965/nir: Use the nir copy of shader_info to handle gl_PatchVerticesIn
Instead of using the copy of shader_info stored in gl_program, it now
uses the one in nir_shader. This is needed for SPIR-V because the
info.tess.tcs_vertices_out is filled in via _mesa_spirv_to_nir which
happens much later than with a GLSL shader. The copy of shader_data in
gl_program is only updated later via brw_shader_gather_info but that
is too late.
For GLSL this shouldn't create any problems because the nir copy of
the shader_info is immediately copied from the gl_program in
glsl_to_nir.
v2: updated after commit "i965: Combine both gl_PatchVerticesIn
lowering passes." (488972) (Alejandro Piñeiro)
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
0 files changed, 0 insertions, 0 deletions