mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 17:36:11 +00:00
igt/gem_exec_nop: Only combine unique rings
Ignore the default ring as that is purely symbolic. On BSD2 systems it is similarly useful to ignore the symbolic BSD ring. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
e1ca201fe9
commit
0aacdac56f
@ -93,6 +93,17 @@ static void single(int fd, uint32_t handle, unsigned ring_id, const char *ring_n
|
||||
ring_name, count, elapsed(&start, &now)*1e6 / count);
|
||||
}
|
||||
|
||||
static bool ignore_engine(int fd, unsigned engine)
|
||||
{
|
||||
if (engine == 0)
|
||||
return true;
|
||||
|
||||
if (gem_has_bsd2(fd) && engine == I915_EXEC_BSD)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
static void all(int fd, uint32_t handle)
|
||||
{
|
||||
struct drm_i915_gem_execbuffer2 execbuf;
|
||||
@ -105,7 +116,8 @@ static void all(int fd, uint32_t handle)
|
||||
|
||||
nengine = 0;
|
||||
for_each_engine(fd, engine)
|
||||
engines[nengine++] = engine;
|
||||
if (!ignore_engine(fd, engine)) engines[nengine++] = engine;
|
||||
igt_require(nengine);
|
||||
|
||||
memset(&obj, 0, sizeof(obj));
|
||||
obj.handle = handle;
|
||||
|
Loading…
x
Reference in New Issue
Block a user