diff --git a/src/broadcom/vulkan/v3dv_private.h b/src/broadcom/vulkan/v3dv_private.h index 8766b554f0f..a02ca4c2968 100644 --- a/src/broadcom/vulkan/v3dv_private.h +++ b/src/broadcom/vulkan/v3dv_private.h @@ -162,7 +162,9 @@ struct v3dv_physical_device { struct v3d_device_info devinfo; +#if USE_V3D_SIMULATOR struct v3d_simulator_file *sim_file; +#endif const struct v3d_compiler *compiler; uint32_t next_program_id; diff --git a/src/gallium/drivers/v3d/v3d_screen.c b/src/gallium/drivers/v3d/v3d_screen.c index c3d08d7f0a4..1316a76ee87 100644 --- a/src/gallium/drivers/v3d/v3d_screen.c +++ b/src/gallium/drivers/v3d/v3d_screen.c @@ -84,8 +84,9 @@ v3d_screen_destroy(struct pipe_screen *pscreen) if (screen->ro) screen->ro->destroy(screen->ro); - if (USE_V3D_SIMULATOR) - v3d_simulator_destroy(screen->sim_file); +#if USE_V3D_SIMULATOR + v3d_simulator_destroy(screen->sim_file); +#endif v3d_compiler_free(screen->compiler); diff --git a/src/gallium/drivers/v3d/v3d_screen.h b/src/gallium/drivers/v3d/v3d_screen.h index 950d268d69b..2d48e36e744 100644 --- a/src/gallium/drivers/v3d/v3d_screen.h +++ b/src/gallium/drivers/v3d/v3d_screen.h @@ -87,7 +87,9 @@ struct v3d_screen { bool has_perfmon; bool nonmsaa_texture_size_limit; +#if USE_V3D_SIMULATOR struct v3d_simulator_file *sim_file; +#endif #ifdef ENABLE_SHADER_CACHE struct disk_cache *disk_cache; diff --git a/src/gallium/drivers/vc4/vc4_screen.h b/src/gallium/drivers/vc4/vc4_screen.h index aa4506eb5f8..407aa3cac27 100644 --- a/src/gallium/drivers/vc4/vc4_screen.h +++ b/src/gallium/drivers/vc4/vc4_screen.h @@ -105,7 +105,9 @@ struct vc4_screen { bool has_perfmon_ioctl; bool has_syncobj; +#if USE_V3D_SIMULATOR struct vc4_simulator_file *sim_file; +#endif }; static inline struct vc4_screen *