mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-07-25 02:45:57 +00:00
igt/gem_softpin: Fix MI_STORE_DATA_IMM for gen3
We need both a secure batch and to flag it to use the virtual GTT address. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
fbb0f636bd
commit
e0ee36141e
@ -369,6 +369,8 @@ static void test_noreloc(int fd)
|
||||
memset(&execbuf, 0, sizeof(execbuf));
|
||||
execbuf.buffers_ptr = (unsigned long)object;
|
||||
execbuf.buffer_count = 1;
|
||||
if (gen < 4)
|
||||
execbuf.flags |= I915_EXEC_SECURE;
|
||||
gem_execbuf(fd, &execbuf);
|
||||
gem_close(fd, object[0].handle);
|
||||
|
||||
@ -391,9 +393,10 @@ static void test_noreloc(int fd)
|
||||
for (i = 0; i < ARRAY_SIZE(object) - 1; i++) {
|
||||
*b++ = MI_STORE_DWORD_IMM;
|
||||
if (gen < 8) {
|
||||
if (gen < 4)
|
||||
if (gen < 4) {
|
||||
b[-1]--;
|
||||
else
|
||||
b[-1] |= 1 << 22;
|
||||
} else
|
||||
*b++ = 0;
|
||||
*b++ = object[i].offset;
|
||||
} else {
|
||||
@ -429,7 +432,7 @@ igt_main
|
||||
igt_skip_on_simulation();
|
||||
|
||||
igt_fixture {
|
||||
fd = drm_open_driver(DRIVER_INTEL);
|
||||
fd = drm_open_driver_master(DRIVER_INTEL);
|
||||
igt_require(has_softpin_support(fd));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user