vc4,v3d,v3dv: avoid compiling in unused sim_file field in the {vc4,v3d}_screen/v3dv_physical_device struct

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30287>
This commit is contained in:
Eric Engestrom
2024-07-21 17:43:36 +02:00
committed by Marge Bot
parent eae740f2e4
commit f1f8c465d5
4 changed files with 9 additions and 2 deletions

View File

@@ -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;

View File

@@ -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);

View File

@@ -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;

View File

@@ -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 *