vkd3d-shader/tpf: Apply VKD3D_SM4_GLOBAL_FLAGS_MASK when writing dcl_globalFlags. Not all vsir global flags can be directly represented by TPF, and the next commit will start to make use of that.
vkd3d-shader/hlsl: Handle SV_StencilRef.