.. | .. |
---|
30 | 30 | #include "dal_asic_id.h" |
---|
31 | 31 | #include "dm_pp_smu.h" |
---|
32 | 32 | |
---|
33 | | -/* TODO unhardcode, 4 for CZ*/ |
---|
34 | | -#define MEMORY_TYPE_MULTIPLIER 4 |
---|
| 33 | +#define MEMORY_TYPE_MULTIPLIER_CZ 4 |
---|
| 34 | +#define MEMORY_TYPE_HBM 2 |
---|
| 35 | + |
---|
35 | 36 | |
---|
36 | 37 | enum dce_version resource_parse_asic_id( |
---|
37 | 38 | struct hw_asic_id asic_id); |
---|
.. | .. |
---|
44 | 45 | int num_stream_encoder; |
---|
45 | 46 | int num_pll; |
---|
46 | 47 | int num_dwb; |
---|
| 48 | + int num_ddc; |
---|
| 49 | + int num_vmid; |
---|
| 50 | + int num_dsc; |
---|
| 51 | +#if defined(CONFIG_DRM_AMD_DC_DCN3_0) |
---|
| 52 | + int num_mpc_3dlut; |
---|
| 53 | +#endif |
---|
47 | 54 | }; |
---|
48 | 55 | |
---|
49 | 56 | struct resource_straps { |
---|
.. | .. |
---|
72 | 79 | struct resource_pool *pool, |
---|
73 | 80 | const struct resource_create_funcs *create_funcs); |
---|
74 | 81 | |
---|
75 | | -struct resource_pool *dc_create_resource_pool( |
---|
76 | | - struct dc *dc, |
---|
77 | | - int num_virtual_links, |
---|
78 | | - enum dce_version dc_version, |
---|
79 | | - struct hw_asic_id asic_id); |
---|
| 82 | +struct resource_pool *dc_create_resource_pool(struct dc *dc, |
---|
| 83 | + const struct dc_init_data *init_data, |
---|
| 84 | + enum dce_version dc_version); |
---|
80 | 85 | |
---|
81 | 86 | void dc_destroy_resource_pool(struct dc *dc); |
---|
82 | 87 | |
---|
.. | .. |
---|
133 | 138 | |
---|
134 | 139 | struct pipe_ctx *find_idle_secondary_pipe( |
---|
135 | 140 | struct resource_context *res_ctx, |
---|
136 | | - const struct resource_pool *pool); |
---|
137 | | - |
---|
138 | | -bool resource_is_stream_unchanged( |
---|
139 | | - struct dc_state *old_context, struct dc_stream_state *stream); |
---|
| 141 | + const struct resource_pool *pool, |
---|
| 142 | + const struct pipe_ctx *primary_pipe); |
---|
140 | 143 | |
---|
141 | 144 | bool resource_validate_attach_surfaces( |
---|
142 | 145 | const struct dc_validation_set set[], |
---|
.. | .. |
---|
171 | 174 | const struct resource_pool *pool, |
---|
172 | 175 | struct audio *audio, |
---|
173 | 176 | bool acquired); |
---|
| 177 | + |
---|
| 178 | +unsigned int resource_pixel_format_to_bpp(enum surface_pixel_format format); |
---|
| 179 | + |
---|
| 180 | +void get_audio_check(struct audio_info *aud_modes, |
---|
| 181 | + struct audio_check *aud_chk); |
---|
| 182 | + |
---|
| 183 | +int get_num_mpc_splits(struct pipe_ctx *pipe); |
---|
| 184 | + |
---|
| 185 | +int get_num_odm_splits(struct pipe_ctx *pipe); |
---|
| 186 | + |
---|
174 | 187 | #endif /* DRIVERS_GPU_DRM_AMD_DC_DEV_DC_INC_RESOURCE_H_ */ |
---|