drm/i915/selftests: Use a single copy of the mocs table
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 1 Feb 2021 10:04:48 +0000 (10:04 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 24 Mar 2021 18:30:36 +0000 (19:30 +0100)
commit8bb92516da076968411c65100ea9d11c9440b783
tree07c24d21597255cc625f61fb326caaa75a3df272
parentc10e4a7960f3032b0313c4b684e0b4025b4c138d
drm/i915/selftests: Use a single copy of the mocs table

Instead of copying the whole table to each category (mocs, l3cc), use a
single table with a pointer to it if the category is enabled.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210201100448.9802-1-chris@chris-wilson.co.uk
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/gt/selftest_mocs.c