Commit 6ebb6d8e authored by Jani Nikula's avatar Jani Nikula

drm/i915/perf: make oa format tables const

No reason not to be const.
Reviewed-by: default avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180613114929.14541-1-jani.nikula@intel.com
parent 697b9a87
...@@ -315,7 +315,7 @@ static u32 i915_oa_max_sample_rate = 100000; ...@@ -315,7 +315,7 @@ static u32 i915_oa_max_sample_rate = 100000;
* code assumes all reports have a power-of-two size and ~(size - 1) can * code assumes all reports have a power-of-two size and ~(size - 1) can
* be used as a mask to align the OA tail pointer. * be used as a mask to align the OA tail pointer.
*/ */
static struct i915_oa_format hsw_oa_formats[I915_OA_FORMAT_MAX] = { static const struct i915_oa_format hsw_oa_formats[I915_OA_FORMAT_MAX] = {
[I915_OA_FORMAT_A13] = { 0, 64 }, [I915_OA_FORMAT_A13] = { 0, 64 },
[I915_OA_FORMAT_A29] = { 1, 128 }, [I915_OA_FORMAT_A29] = { 1, 128 },
[I915_OA_FORMAT_A13_B8_C8] = { 2, 128 }, [I915_OA_FORMAT_A13_B8_C8] = { 2, 128 },
...@@ -326,7 +326,7 @@ static struct i915_oa_format hsw_oa_formats[I915_OA_FORMAT_MAX] = { ...@@ -326,7 +326,7 @@ static struct i915_oa_format hsw_oa_formats[I915_OA_FORMAT_MAX] = {
[I915_OA_FORMAT_C4_B8] = { 7, 64 }, [I915_OA_FORMAT_C4_B8] = { 7, 64 },
}; };
static struct i915_oa_format gen8_plus_oa_formats[I915_OA_FORMAT_MAX] = { static const struct i915_oa_format gen8_plus_oa_formats[I915_OA_FORMAT_MAX] = {
[I915_OA_FORMAT_A12] = { 0, 64 }, [I915_OA_FORMAT_A12] = { 0, 64 },
[I915_OA_FORMAT_A12_B8_C8] = { 2, 128 }, [I915_OA_FORMAT_A12_B8_C8] = { 2, 128 },
[I915_OA_FORMAT_A32u40_A4u32_B8_C8] = { 5, 256 }, [I915_OA_FORMAT_A32u40_A4u32_B8_C8] = { 5, 256 },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment