compiler/spirv: move the check for Int8 capability