drm/i915/query: Split out query item checks
authorAbdiel Janulgue <abdiel.janulgue@linux.intel.com>
Mon, 11 Feb 2019 17:32:51 +0000 (19:32 +0200)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 26 Feb 2019 10:32:57 +0000 (10:32 +0000)
commit5a80e4a2cd7073a74c8435e361cc9120c2a954b7
treec3b6a8b408fc15bd44537fee0f92f6b4e406b21d
parent368375107ba4d03917ba7954217c39461350a8a3
drm/i915/query: Split out query item checks

This simplifies adding new query item objects.

v2: Use query_hdr (Tvrtko, Chris).
    int instead of u32 in return (Tvrtko)
v3: More naming fixes (Tvrtko)

Signed-off-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190211173251.7131-1-abdiel.janulgue@linux.intel.com
drivers/gpu/drm/i915/i915_query.c