nvir: introduce OP_WARPSYNC
authorBen Skeggs <bskeggs@redhat.com>
Sat, 6 Jun 2020 23:51:49 +0000 (09:51 +1000)
committerMarge Bot <eric+marge@anholt.net>
Wed, 10 Jun 2020 22:52:41 +0000 (22:52 +0000)
Will be required to support SM70.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5377>

src/gallium/drivers/nouveau/codegen/nv50_ir.h
src/gallium/drivers/nouveau/codegen/nv50_ir_print.cpp
src/gallium/drivers/nouveau/codegen/nv50_ir_target.cpp

index a4ade030b008251a2df76337e98df0d2511ce48d..5b8595c961e90fa945ae6ef9b8511ef49ac52b82 100644 (file)
@@ -168,6 +168,7 @@ enum operation
    OP_SHFL, // warp shuffle
    OP_VOTE,
    OP_BUFQ, // buffer query
+   OP_WARPSYNC,
    OP_LAST
 };
 
index 747382210807f1e103eeb1352705f41e1d558363..b85ace15b87eba65c83deffbf7ee92c928303db4 100644 (file)
@@ -194,6 +194,7 @@ const char *operationStr[OP_LAST + 1] =
    "shfl",
    "vote",
    "bufq",
+   "warpsync",
    "(invalid)"
 };
 
index 92ac7101cfc2c9c4792399f3d48cd04e7b14ebdc..e801722ec09640071a7f21f0f6570bb31c7de507 100644 (file)
@@ -58,6 +58,7 @@ const uint8_t Target::operationSrcNr[] =
    3,                      // SHFL
    1,                      // VOTE
    1,                      // BUFQ
+   1,                      // WARPSYNC
    0
 };
 
@@ -136,6 +137,8 @@ const OpClass Target::operationClass[] =
    OPCLASS_OTHER,
    // BUFQ
    OPCLASS_OTHER,
+   // WARPSYNC
+   OPCLASS_OTHER,
    OPCLASS_PSEUDO // LAST
 };