mirror of https://gitlab.freedesktop.org/mesa/mesa
etnaviv: drm: Add etna_gpu_get_core_info(..)
Makes it possible to access etna_core_info. Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com> Reviewed-by: Lucas Stach <l.stach@pengutronix.de> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28574>
This commit is contained in:
parent
ad4b6cce30
commit
d3f8e3ee42
|
@ -39,6 +39,7 @@ struct etna_cmd_stream;
|
|||
struct etna_perfmon;
|
||||
struct etna_perfmon_domain;
|
||||
struct etna_perfmon_signal;
|
||||
struct etna_core_info;
|
||||
|
||||
enum etna_pipe_id {
|
||||
ETNA_PIPE_3D = 0,
|
||||
|
@ -119,6 +120,7 @@ struct etna_gpu *etna_gpu_new(struct etna_device *dev, unsigned int core);
|
|||
void etna_gpu_del(struct etna_gpu *gpu);
|
||||
int etna_gpu_get_param(struct etna_gpu *gpu, enum etna_param_id param,
|
||||
uint64_t *value);
|
||||
struct etna_core_info *etna_gpu_get_core_info(struct etna_gpu *gpu);
|
||||
|
||||
|
||||
/* pipe functions:
|
||||
|
|
|
@ -198,3 +198,8 @@ int etna_gpu_get_param(struct etna_gpu *gpu, enum etna_param_id param,
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct etna_core_info *etna_gpu_get_core_info(struct etna_gpu *gpu)
|
||||
{
|
||||
return &gpu->info;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue