spirv: Use OpEntryPoint interface information
Rework the code to identify what global variables are part of the shader (entrypoint). OpEntryPoint gives that information for I/O and after 1.4 for all global variables. For other cases just use the remove dead variables pass.
Edited by Caio Oliveira