]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: fix whitelist selftests with readonly registers
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Sat, 29 Jun 2019 13:13:50 +0000 (14:13 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 2 Jul 2019 11:15:19 +0000 (12:15 +0100)
commit1dc913cda47b6bacd4c3e7655f1322d891778759
tree0f817bcb42d391a1dc2d30993638d1b87c5e13e0
parent84e6500030dfb99a04e03e7d25a1ea8693439e10
drm/i915: fix whitelist selftests with readonly registers

When a register is readonly there is not much we can tell about its
value (apart from its default value?). This can be covered by tests
exercising the value of the register from userspace.

For PS_INVOCATION_COUNT we've got the following piglit tests :

   KHR-GL45.pipeline_statistics_query_tests_ARB.functional_fragment_shader_invocations

Vulkan CTS tests :

   dEQP-VK.query_pool.statistics_query.fragment_shader_invocations.*

v2: Use a local to shrink under 80cols.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 22fd43799cd0 ("drm/i915/selftests: Verify whitelist of context registers")
Tested-by: Anuj Phogat <anuj.phogat@gmail.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190629131350.31185-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/selftest_workarounds.c