mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-08 08:26:10 +00:00
igt/gem_ringfill: Add exercising the default-ring to basic testing
ringfill generates a few very common errors when submitting requests, and historically these have been where we have had many implementation bugs, repeated over and over again. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
348742ec0d
commit
8f6957a05a
@ -188,30 +188,27 @@ static void run_test(int fd, unsigned ring, unsigned flags)
|
|||||||
igt_main
|
igt_main
|
||||||
{
|
{
|
||||||
const struct {
|
const struct {
|
||||||
const char *prefix;
|
|
||||||
const char *suffix;
|
const char *suffix;
|
||||||
unsigned flags;
|
unsigned flags;
|
||||||
} modes[] = {
|
} modes[] = {
|
||||||
{ "basic-", "", 0 },
|
{ "", 0 },
|
||||||
{ "", "-interruptible", INTERRUPTIBLE },
|
{ "-interruptible", INTERRUPTIBLE },
|
||||||
{ "", "-hang", HANG },
|
{ "-hang", HANG },
|
||||||
{ "", "-child", CHILD },
|
{ "-child", CHILD },
|
||||||
{ "", "-forked", FORKED },
|
{ "-forked", FORKED },
|
||||||
{ "", "-bomb", BOMB | INTERRUPTIBLE },
|
{ "-bomb", BOMB | INTERRUPTIBLE },
|
||||||
{ NULL, NULL, 0 }
|
{ NULL, 0 }
|
||||||
}, *mode;
|
}, *mode;
|
||||||
const struct intel_execution_engine *e;
|
const struct intel_execution_engine *e;
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
igt_skip_on_simulation();
|
|
||||||
|
|
||||||
igt_fixture
|
igt_fixture
|
||||||
fd = drm_open_driver_master(DRIVER_INTEL);
|
fd = drm_open_driver_master(DRIVER_INTEL);
|
||||||
|
|
||||||
for (mode = modes; mode->prefix; mode++) {
|
for (mode = modes; mode->suffix; mode++) {
|
||||||
for (e = intel_execution_engines; e->name; e++) {
|
for (e = intel_execution_engines; e->name; e++) {
|
||||||
igt_subtest_f("%s%s%s",
|
igt_subtest_f("%s%s%s",
|
||||||
e->exec_id || (mode->flags & ~INTERRUPTIBLE) ? "" : mode->prefix,
|
e->exec_id ? "" : "basic-",
|
||||||
e->name,
|
e->name,
|
||||||
mode->suffix)
|
mode->suffix)
|
||||||
run_test(fd, e->exec_id | e->flags, mode->flags);
|
run_test(fd, e->exec_id | e->flags, mode->flags);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user