Mesa (main): v3d/simulator: get rid of has_gca wrapper

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jun 7 22:04:55 UTC 2021


Module: Mesa
Branch: main
Commit: 50907105f939b9555a1a03d8b647ecab57f058a1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=50907105f939b9555a1a03d8b647ecab57f058a1

Author: Alejandro Piñeiro <apinheiro at igalia.com>
Date:   Fri Apr 23 12:21:29 2021 +0200

v3d/simulator: get rid of has_gca wrapper

We can assume that it is always present on 3.3 and below. In fact,
recent updates of the simulator will remove it, so this change would
be needed soon.

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

---

 src/broadcom/simulator/v3d_simulator_wrapper.cpp | 5 -----
 src/broadcom/simulator/v3d_simulator_wrapper.h   | 1 -
 src/broadcom/simulator/v3dx_simulator.c          | 3 ---
 3 files changed, 9 deletions(-)

diff --git a/src/broadcom/simulator/v3d_simulator_wrapper.cpp b/src/broadcom/simulator/v3d_simulator_wrapper.cpp
index 7a6fb98366e..88e439255d3 100644
--- a/src/broadcom/simulator/v3d_simulator_wrapper.cpp
+++ b/src/broadcom/simulator/v3d_simulator_wrapper.cpp
@@ -56,11 +56,6 @@ bool v3d_hw_alloc_mem(struct v3d_hw *hw, size_t min_size)
         return hw->alloc_mem(min_size) == V3D_HW_ALLOC_SUCCESS;
 }
 
-bool v3d_hw_has_gca(struct v3d_hw *hw)
-{
-        return hw->has_gca();
-}
-
 uint32_t v3d_hw_read_reg(struct v3d_hw *hw, uint32_t reg)
 {
         return hw->read_reg(reg);
diff --git a/src/broadcom/simulator/v3d_simulator_wrapper.h b/src/broadcom/simulator/v3d_simulator_wrapper.h
index 90e7c420701..05b2a3361ac 100644
--- a/src/broadcom/simulator/v3d_simulator_wrapper.h
+++ b/src/broadcom/simulator/v3d_simulator_wrapper.h
@@ -33,7 +33,6 @@ extern "C" {
 struct v3d_hw *v3d_hw_auto_new(void *params);
 uint32_t v3d_hw_get_mem(const struct v3d_hw *hw, uint32_t *size, void **p);
 bool v3d_hw_alloc_mem(struct v3d_hw *hw, size_t min_size);
-bool v3d_hw_has_gca(struct v3d_hw *hw);
 uint32_t v3d_hw_read_reg(struct v3d_hw *hw, uint32_t reg);
 void v3d_hw_write_reg(struct v3d_hw *hw, uint32_t reg, uint32_t val);
 void v3d_hw_tick(struct v3d_hw *hw);
diff --git a/src/broadcom/simulator/v3dx_simulator.c b/src/broadcom/simulator/v3dx_simulator.c
index 662624ee745..f00f1b0ed5a 100644
--- a/src/broadcom/simulator/v3dx_simulator.c
+++ b/src/broadcom/simulator/v3dx_simulator.c
@@ -58,9 +58,6 @@
 static void
 v3d_invalidate_l3(struct v3d_hw *v3d)
 {
-        if (!v3d_hw_has_gca(v3d))
-                return;
-
 #if V3D_VERSION < 40
         uint32_t gca_ctrl = V3D_READ(V3D_GCA_CACHE_CTRL);
 



More information about the mesa-commit mailing list