aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/v3d/v3d_screen.c
diff options
context:
space:
mode:
authorAlejandro PiƱeiro <[email protected]>2019-11-29 11:17:18 +0100
committerMarge Bot <[email protected]>2020-06-27 00:06:58 +0000
commit583d7d3d8d0d14d636340b0f12f72db7b0148ceb (patch)
tree23fb52b729ab39bf31160a673bb409c7c51325f0 /src/gallium/drivers/v3d/v3d_screen.c
parent4fccbd0ea60280fd1e9cb0728ba828783fb20b2c (diff)
v3d: moving v3d simulator to src/broadcom
So it could be used by both the OpenGL and the Vulkan driver. In addition to the move, some small changes were needed to be made on the API. For example, the simulator was receiving v3d_screen on initialization, and that code setted v3d_screen->sim_file. Now it returns the new sim_file created. Reviewed-by: Eric Anholt <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5666>
Diffstat (limited to 'src/gallium/drivers/v3d/v3d_screen.c')
-rw-r--r--src/gallium/drivers/v3d/v3d_screen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/v3d/v3d_screen.c b/src/gallium/drivers/v3d/v3d_screen.c
index 503573e36bc..bafe7301266 100644
--- a/src/gallium/drivers/v3d/v3d_screen.c
+++ b/src/gallium/drivers/v3d/v3d_screen.c
@@ -78,7 +78,7 @@ v3d_screen_destroy(struct pipe_screen *pscreen)
free(screen->ro);
if (using_v3d_simulator)
- v3d_simulator_destroy(screen);
+ v3d_simulator_destroy(screen->sim_file);
v3d_compiler_free(screen->compiler);
u_transfer_helper_destroy(pscreen->transfer_helper);
@@ -682,7 +682,7 @@ v3d_screen_create(int fd, const struct pipe_screen_config *config,
screen->bo_handles = util_hash_table_create_ptr_keys();
#if defined(USE_V3D_SIMULATOR)
- v3d_simulator_init(screen);
+ screen->sim_file = v3d_simulator_init(screen->fd);
#endif
if (!v3d_get_device_info(screen->fd, &screen->devinfo, &v3d_ioctl))