diff --git a/src/panfrost/lib/pan_encoder.h b/src/panfrost/lib/pan_encoder.h index 9433f02de61..99971d27969 100644 --- a/src/panfrost/lib/pan_encoder.h +++ b/src/panfrost/lib/pan_encoder.h @@ -67,13 +67,6 @@ panfrost_get_total_stack_size( unsigned threads_per_core, unsigned core_count); -/* Property queries */ - - -unsigned panfrost_query_gpu_version(int fd); -unsigned panfrost_query_core_count(int fd); -unsigned panfrost_query_thread_tls_alloc(int fd); - const char * panfrost_model_name(unsigned gpu_id); /* Attributes / instancing */ diff --git a/src/panfrost/lib/pan_props.c b/src/panfrost/lib/pan_props.c index 627828c326f..4c3bf706a18 100644 --- a/src/panfrost/lib/pan_props.c +++ b/src/panfrost/lib/pan_props.c @@ -60,13 +60,13 @@ panfrost_query_raw( return get_param.value; } -unsigned +static unsigned panfrost_query_gpu_version(int fd) { return panfrost_query_raw(fd, DRM_PANFROST_PARAM_GPU_PROD_ID, true, 0); } -unsigned +static unsigned panfrost_query_core_count(int fd) { /* On older kernels, worst-case to 16 cores */ @@ -77,7 +77,7 @@ panfrost_query_core_count(int fd) return util_bitcount(mask); } -unsigned +static unsigned panfrost_query_thread_tls_alloc(int fd) { /* On older kernels, we worst-case to 256 threads, the architectural