spirv: Handle the PixelCenterInteger execution mode.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 18 May 2016 18:06:08 +0000 (11:06 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 20 May 2016 21:44:22 +0000 (14:44 -0700)
commitde45da6a8c3091de400adc468682779abc989109
tree22faf0247bcbe75e5d56282d682ef3b06cc04653
parent9b8b3f75018ac3d7ab9aa09df012b6d19aa6fae2
spirv: Handle the PixelCenterInteger execution mode.

This isn't allowed by Vulkan, but might be useful someday for
SPIR-V in OpenGL (if that ever becomes a thing).  It's easy enough
to hook up, and as precedent, we already do so for OriginLowerLeft.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/spirv/spirv_to_nir.c
src/compiler/spirv/vtn_private.h
src/compiler/spirv/vtn_variables.c