microsoft/compiler: Discard shouldn't be marked readnone
authorJesse Natalie <jenatali@microsoft.com>
Fri, 12 Aug 2022 15:52:45 +0000 (08:52 -0700)
committerJesse Natalie <jenatali@microsoft.com>
Thu, 18 Aug 2022 13:44:22 +0000 (06:44 -0700)
Cc: mesa-stable
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18034>

src/microsoft/compiler/dxil_function.c

index cc78f82..e7b3ab3 100644 (file)
@@ -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},