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>
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);
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);
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);