summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_screen.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2016-10-12 10:30:41 -0700
committerEric Anholt <[email protected]>2016-10-21 14:12:22 -0700
commit1c38ee380dc6c847c62e8a83978b31382f55bcff (patch)
tree2ed99fcbb1fdd9a923fa6c10bef506b6e4a927bd /src/gallium/drivers/vc4/vc4_screen.h
parent9f755223821eaa0a889f8a10cccc66e15bf0abb4 (diff)
vc4: Move simulator memory management to a u_mm.h heap.
Now we aren't limited to 256MB total allocated across a driver instance, just 256MB at one time. We're still copying in and out, which should get fixed.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_screen.h')
-rw-r--r--src/gallium/drivers/vc4/vc4_screen.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_screen.h b/src/gallium/drivers/vc4/vc4_screen.h
index 9fbe48c9a51..83bb5aacfcf 100644
--- a/src/gallium/drivers/vc4/vc4_screen.h
+++ b/src/gallium/drivers/vc4/vc4_screen.h
@@ -47,6 +47,8 @@ struct vc4_bo;
#define VC4_MAX_MIP_LEVELS 12
#define VC4_MAX_TEXTURE_SAMPLERS 16
+struct vc4_simulator_file;
+
struct vc4_screen {
struct pipe_screen base;
int fd;
@@ -83,6 +85,8 @@ struct vc4_screen {
uint32_t bo_size;
uint32_t bo_count;
bool has_control_flow;
+
+ struct vc4_simulator_file *sim_file;
};
static inline struct vc4_screen *