panfrost: Don't export queries
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 21 Oct 2020 21:20:27 +0000 (17:20 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 23 Oct 2020 14:48:23 +0000 (14:48 +0000)
They should be cached onto the device anyway.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206>

src/panfrost/lib/pan_encoder.h
src/panfrost/lib/pan_props.c

index 9433f02..99971d2 100644 (file)
@@ -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 */
index 627828c..4c3bf70 100644 (file)
@@ -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