[SPIR-V] Error when -Gis is used with -spirv (#4529)

Though we may support -Gis with the SPIR-V backend in future, it is
currently not supported, so this change makes that explicit to the user
with an error message when it is used.

Related to #3331
This commit is contained in:
Natalie Chouinard 2022-06-23 15:28:27 -07:00 коммит произвёл GitHub
Родитель a19c326294
Коммит 0ef9b70289
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -329,7 +329,7 @@ static bool hasUnsupportedSpirvOption(const InputArgList &args,
// available options and their current compatibility is needed to generate a
// complete list.
std::vector<OptSpecifier> unsupportedOpts = {OPT_Fd, OPT_Fre,
OPT_Qstrip_reflect};
OPT_Qstrip_reflect, OPT_Gis};
for (const auto &id : unsupportedOpts) {
if (Arg *arg = args.getLastArg(id)) {

Просмотреть файл

@ -0,0 +1,5 @@
// RUN: %dxc -T ps_6_0 -E main -spirv -Gis
void main() {}
// CHECK: -Gis is not supported with -spirv