i965/nir: add a helper to lower gl_PatchVerticesIn to a uniform
authorIago Toral Quiroga <itoral@igalia.com>
Mon, 8 Jan 2018 08:41:23 +0000 (09:41 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Wed, 10 Jan 2018 07:21:02 +0000 (08:21 +0100)
commit4317c848b9c8f5a650815e20c792fc9f3564b68e
tree78e103068adfa7ddf0787c4d39a14a95a191e398
parentea227f4322debd68380feaad1de44a2feaf3d2a9
i965/nir: add a helper to lower gl_PatchVerticesIn to a uniform

v2: do not try to handle it as a system value directly for the SPIR-V
    path. In GL we rather handle it as a uniform like we do for the
    GLSL path (Jason).

v3:
  - Remove the uniform variable, it is alwats -1 now (Jason)
  - Also do the lowering for the TessEval stage (Jason)

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/compiler/brw_nir.h
src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp