st/nir: Lower TES gl_PatchVerticesIn to a constant if linked with a TCS.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 19 Jul 2018 01:46:09 +0000 (18:46 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 11 Jan 2019 21:07:54 +0000 (13:07 -0800)
commit2b876bc92260991ad3ad1fd6b38240f6983078e1
tree88e8e5179cdc9b55c11f61f79f96fc9fca5f072f
parent3d182601bb3314513500e39092c48a7126b3278a
st/nir: Lower TES gl_PatchVerticesIn to a constant if linked with a TCS.

If the TCS and TES are linked together, we can simply replace the TES's
gl_PatchVerticesIn system value with a constant, possibly allowing extra
optimization or letting the driver avoid uploading a special value.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/state_tracker/st_glsl_to_nir.cpp