OSDN Git Service

drm/i915/query: Align flavour of engine data lookup
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Fri, 22 Nov 2019 10:41:15 +0000 (10:41 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 23 Nov 2019 19:33:12 +0000 (19:33 +0000)
commit9acc99d8f278e3da398e927774431bd3e947ab2e
treeec48c7197c661c5a3436add00bc7db919f0f3831
parent6025ba1204713a3d9667cc1a278ed180c5aa367c
drm/i915/query: Align flavour of engine data lookup

Commit 750e76b4f9f6 ("drm/i915/gt: Move the [class][inst] lookup for
engines onto the GT") changed the engine query to iterate over uabi
engines but left the buffer size calculation look at the physical engine
count. Difference has no practical consequence but it is nicer to align
both queries.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Fixes: 750e76b4f9f6 ("drm/i915/gt: Move the [class][inst] lookup for engines onto the GT")
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20191122104115.29610-1-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/i915_query.c