projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
broadcom/vc5: Don't allocate simulator BOs at offset 0.
[mesa.git]
/
src
/
gallium
/
drivers
/
vc5
/
vc5_simulator_wrapper.cpp
diff --git
a/src/gallium/drivers/vc5/vc5_simulator_wrapper.cpp
b/src/gallium/drivers/vc5/vc5_simulator_wrapper.cpp
index 1e3c5c8f8c255c61a30171d7e965592abfa0be99..5776aea20b4a001a395b44bcb55c5da9e683d4a4 100644
(file)
--- a/
src/gallium/drivers/vc5/vc5_simulator_wrapper.cpp
+++ b/
src/gallium/drivers/vc5/vc5_simulator_wrapper.cpp
@@
-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 */