broadcom/vc5: Don't allocate simulator BOs at offset 0.
[mesa.git] / src / gallium / drivers / vc5 / vc5_simulator_wrapper.cpp
index 1e3c5c8f8c255c61a30171d7e965592abfa0be99..5776aea20b4a001a395b44bcb55c5da9e683d4a4 100644 (file)
@@ -76,6 +76,13 @@ void v3d_hw_tick(struct v3d_hw *hw)
         return hw->tick();
 }
 
+int v3d_hw_get_version(struct v3d_hw *hw)
+{
+        const V3D_HUB_IDENT_T *ident = hw->get_hub_ident();
+
+        return ident->tech_version * 10 + ident->revision;
+}
+
 }
 
 #endif /* USE_VC5_SIMULATOR */