OSDN Git Service

i915/perf: Move OA formats to single array
authorUmesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Mon, 8 Feb 2021 17:40:28 +0000 (09:40 -0800)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 9 Feb 2021 11:26:32 +0000 (13:26 +0200)
commit0f15c5b00634898f573f478f3700b5f4b7a2b727
tree58cfd8181b733b398a06f6a3d7a1d0f3b9e2c0fd
parent77892f4f050e73e5998c4f3a12b1e459680be7f6
i915/perf: Move OA formats to single array

Variations in OA formats in the different gens has led to creation of
several sparse arrays to store the formats.

Move oa formats into a single array and format_mask to check for
platform specific oa formats.

Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210208174029.45621-2-umesh.nerlige.ramappa@intel.com
drivers/gpu/drm/i915/i915_perf.c