mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
v3d/simulator: hw mem is now an v3d_size_t, typedef to uint32_t
It would be really awesome to be able to write this so it would work with old and new versions of the simulator, but I was not able to do that. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11040>
This commit is contained in:
parent
c9bbf75195
commit
646a8338b1
3 changed files with 3 additions and 3 deletions
|
|
@ -79,7 +79,7 @@ static struct v3d_simulator_state {
|
|||
/* Base hardware address of the heap. */
|
||||
uint32_t mem_base;
|
||||
/* Size of the heap. */
|
||||
size_t mem_size;
|
||||
uint32_t mem_size;
|
||||
|
||||
struct mem_block *heap;
|
||||
struct mem_block *overflow;
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ struct v3d_hw *v3d_hw_auto_new(void *in_params)
|
|||
}
|
||||
|
||||
|
||||
uint32_t v3d_hw_get_mem(const struct v3d_hw *hw, size_t *size, void **p)
|
||||
uint32_t v3d_hw_get_mem(const struct v3d_hw *hw, uint32_t *size, void **p)
|
||||
{
|
||||
return hw->get_mem(size, p);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
struct v3d_hw *v3d_hw_auto_new(void *params);
|
||||
uint32_t v3d_hw_get_mem(const struct v3d_hw *hw, size_t *size, void **p);
|
||||
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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue