OSDN Git Service

ac: remove unused AC_WAIT_EXP
authorMarek Olšák <marek.olsak@amd.com>
Sat, 29 Jun 2019 04:59:55 +0000 (00:59 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 4 Jul 2019 19:39:01 +0000 (15:39 -0400)
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
src/amd/common/ac_llvm_build.c
src/amd/common/ac_llvm_build.h

index b22c95c..6389185 100644 (file)
@@ -2872,14 +2872,11 @@ void ac_build_waitcnt(struct ac_llvm_context *ctx, unsigned wait_flags)
                return;
 
        unsigned lgkmcnt = 63;
-       unsigned expcnt = 7;
        unsigned vmcnt = ctx->chip_class >= GFX9 ? 63 : 15;
        unsigned vscnt = 63;
 
        if (wait_flags & AC_WAIT_LGKM)
                lgkmcnt = 0;
-       if (wait_flags & AC_WAIT_EXP)
-               expcnt = 0;
        if (wait_flags & AC_WAIT_VLOAD)
                vmcnt = 0;
 
@@ -2891,7 +2888,7 @@ void ac_build_waitcnt(struct ac_llvm_context *ctx, unsigned wait_flags)
        }
 
        unsigned simm16 = (lgkmcnt << 8) |
-                         (expcnt << 4) |
+                         (7 << 4) | /* expcnt */
                          (vmcnt & 0xf) |
                          ((vmcnt >> 4) << 14);
 
index 18c9a27..7f6139e 100644 (file)
@@ -44,9 +44,8 @@ enum {
 };
 
 #define AC_WAIT_LGKM   (1 << 0) /* LDS, GDS, constant, message */
-#define AC_WAIT_EXP    (1 << 1) /* exports */
-#define AC_WAIT_VLOAD  (1 << 2) /* VMEM load/sample instructions */
-#define AC_WAIT_VSTORE (1 << 3) /* VMEM store instructions */
+#define AC_WAIT_VLOAD  (1 << 1) /* VMEM load/sample instructions */
+#define AC_WAIT_VSTORE (1 << 2) /* VMEM store instructions */
 
 struct ac_llvm_flow;