Mesa (master): intel/mi_builder: Fix a couple of #ifs

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Mar 8 22:23:23 UTC 2021


Module: Mesa
Branch: master
Commit: 25020c125a9856585ad0ccff77ee3afc8e4adf38
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=25020c125a9856585ad0ccff77ee3afc8e4adf38

Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Mon Mar  8 16:14:12 2021 -0600

intel/mi_builder: Fix a couple of #ifs

All this does is remove a field on Gen7 and stop asserting on it.  No
actual functional change.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9467>

---

 src/intel/common/mi_builder.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/intel/common/mi_builder.h b/src/intel/common/mi_builder.h
index d97ddcd35ff..681658a70a0 100644
--- a/src/intel/common/mi_builder.h
+++ b/src/intel/common/mi_builder.h
@@ -95,7 +95,7 @@ struct mi_value {
       uint32_t reg;
    };
 
-#if GEN_GEN >= 7 || GEN_IS_HASWELL
+#if GEN_GEN >= 8 || GEN_IS_HASWELL
    bool invert;
 #endif
 };
@@ -360,7 +360,7 @@ static inline void
 _mi_copy_no_unref(struct mi_builder *b,
                   struct mi_value dst, struct mi_value src)
 {
-#if GEN_GEN >= 7 || GEN_IS_HASWELL
+#if GEN_GEN >= 8 || GEN_IS_HASWELL
    /* TODO: We could handle src.invert by emitting a bit of math if we really
     * wanted to.
     */



More information about the mesa-commit mailing list