mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 09:26:10 +00:00
tests: fixup igt_simple_main fallout
Oops, I should look at compilier warnings a bit better. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
7775fca2df
commit
cb9e8376fa
@ -107,10 +107,8 @@ igt_simple_main
|
||||
aper_size = gem_aperture_size(fd);
|
||||
|
||||
/* presume a big per-bo overhead */
|
||||
if (intel_get_total_ram_mb() < (aper_size / (1024*1024)) * 3 / 2) {
|
||||
fprintf(stderr, "not enough mem to run test\n");
|
||||
return 77;
|
||||
}
|
||||
igt_skip_on_f(intel_get_total_ram_mb() < (aper_size / (1024*1024)) * 3 / 2,
|
||||
"not enough mem to run test\n");
|
||||
|
||||
count = aper_size / 4096;
|
||||
|
||||
|
@ -100,10 +100,8 @@ igt_simple_main
|
||||
|
||||
fd = drm_open_any();
|
||||
devid = intel_get_drm_devid(fd);
|
||||
if (!HAS_BLT_RING(devid)) {
|
||||
fprintf(stderr, "not (yet) implemented for pre-snb\n");
|
||||
return 77;
|
||||
}
|
||||
igt_require_f(HAS_BLT_RING(devid),
|
||||
"not (yet) implemented for pre-snb\n");
|
||||
|
||||
bufmgr = drm_intel_bufmgr_gem_init(fd, 4096);
|
||||
igt_assert(bufmgr);
|
||||
|
@ -143,8 +143,7 @@ igt_simple_main
|
||||
gem_exec[n].handle = gem_create(fd, 4096);
|
||||
gem_write(fd, gem_exec[n].handle, 0, batch, sizeof(batch));
|
||||
|
||||
if (exec(fd, 1, 0, USE_LUT))
|
||||
return 77;
|
||||
igt_skip_on(exec(fd, 1, 0, USE_LUT));
|
||||
|
||||
for (p = pass; p->name != NULL; p++) {
|
||||
for (n = 1; n <= MAX_NUM_EXEC; n *= 2) {
|
||||
|
@ -189,8 +189,7 @@ igt_simple_main
|
||||
do_or_die(exec(fd, handle, NORMAL));
|
||||
fail(exec(fd, handle, BROKEN));
|
||||
|
||||
if (exec(fd, handle, USE_LUT))
|
||||
return 77;
|
||||
igt_skip_on(exec(fd, handle, USE_LUT));
|
||||
|
||||
do_or_die(exec(fd, handle, USE_LUT));
|
||||
fail(exec(fd, handle, USE_LUT | BROKEN));
|
||||
|
@ -209,8 +209,7 @@ igt_simple_main
|
||||
|
||||
fd = drm_open_any();
|
||||
|
||||
if (!test_can_pin(fd))
|
||||
return 77;
|
||||
igt_require(test_can_pin(fd));
|
||||
|
||||
handle = malloc(sizeof(uint32_t)*100);
|
||||
offset = malloc(sizeof(uint32_t)*100);
|
||||
|
Loading…
x
Reference in New Issue
Block a user