spirv: Builtin Layer is an input for fragment shaders
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 2 Dec 2016 13:16:07 +0000 (14:16 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Sat, 3 Dec 2016 19:50:57 +0000 (20:50 +0100)
commit66e7effc8542aa725eb9c08d826ece009526cd50
tree92ee0a29f9c9788811c21238cc2104ada5ad4242
parenta7b510f656dfbda0afb1de78926037a337449140
spirv: Builtin Layer is an input for fragment shaders

This change makes it so we emit a load_input intrinsic when Layer
is read in a fragment shader.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/spirv/vtn_variables.c