mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 09:40:08 +01:00
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:
parent
eae740f2e4
commit
f1f8c465d5
4 changed files with 9 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 *
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue