diff --git a/src/microsoft/compiler/dxil_function.c b/src/microsoft/compiler/dxil_function.c index cc78f822847..e7b3ab36cff 100644 --- a/src/microsoft/compiler/dxil_function.c +++ b/src/microsoft/compiler/dxil_function.c @@ -62,7 +62,7 @@ static struct predefined_func_descr predefined_funcs[] = { {"dx.op.textureLoad", "R", "i@iiiiiii", DXIL_ATTR_KIND_READ_ONLY}, {"dx.op.textureGather", "R", "i@@ffffiii", DXIL_ATTR_KIND_READ_ONLY}, {"dx.op.textureGatherCmp", "R", "i@@ffffiiif", DXIL_ATTR_KIND_READ_ONLY}, -{"dx.op.discard", "v", "ib", DXIL_ATTR_KIND_READ_NONE}, +{"dx.op.discard", "v", "ib", DXIL_ATTR_KIND_NO_UNWIND}, {"dx.op.sampleIndex", "i", "i", DXIL_ATTR_KIND_READ_NONE}, {"dx.op.emitStream", "v", "ic", DXIL_ATTR_KIND_NONE}, {"dx.op.cutStream", "v", "ic", DXIL_ATTR_KIND_NONE},