etnaviv: remove variable from global namespace
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 15 Oct 2019 13:24:33 +0000 (16:24 +0300)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 15 Oct 2019 21:07:25 +0000 (21:07 +0000)
Found out by accident this was clashing with another driver.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Cc: <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/etnaviv/etnaviv_resource.c

index ff1bf2901a3dc672fcede3f2a09a3febe270a903..21943140f080b4f63c667cefeab5821bc6d58abb 100644 (file)
@@ -384,7 +384,7 @@ enum modifier_priority {
    MODIFIER_PRIORITY_SUPER_TILED,
 };
 
-const uint64_t priority_to_modifier[] = {
+static const uint64_t priority_to_modifier[] = {
    [MODIFIER_PRIORITY_INVALID] = DRM_FORMAT_MOD_INVALID,
    [MODIFIER_PRIORITY_LINEAR] = DRM_FORMAT_MOD_LINEAR,
    [MODIFIER_PRIORITY_SPLIT_TILED] = DRM_FORMAT_MOD_VIVANTE_SPLIT_TILED,