OSDN Git Service

nir/spirv: Fix handling of gl_PrimitiveId
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 11 Nov 2016 06:31:32 +0000 (22:31 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 17 Nov 2016 04:07:23 +0000 (20:07 -0800)
commit955714759257e81f01f013c84d2bd7f14a0ec04f
treefbd460804079bf8654fed125b4bbbc9281b18f58
parent1c97432ce88ea272ff7d906cd36f70e09dafcab9
nir/spirv: Fix handling of gl_PrimitiveId

Before, we were always treating it as an output which bogus.  The only
stage in which this it can be an output is the geometry stage.  In all
other stages, it's an input which, in the back-end, we actually want to be
a system value.

Cc: "13.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/compiler/spirv/vtn_variables.c