mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-23 06:13:04 +00:00
tests: adapt storedw tests to ppgtt
MI_MEM_VIRTUAL actually means use global gtt now, not setting the bit means use ppgtt. On previous gens, not setting the bits ment 'use physical memory'. So what, the usual confusion. Note that for some odd reasong this is broken on gen6, but only on the bsd ring. Unexpected. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
@@ -57,6 +57,20 @@ is_intel(int fd)
|
||||
return IS_INTEL(devid);
|
||||
}
|
||||
|
||||
bool gem_uses_aliasing_ppgtt(int fd)
|
||||
{
|
||||
struct drm_i915_getparam gp;
|
||||
int val;
|
||||
|
||||
gp.param = 18; /* HAS_ALIASING_PPGTT */
|
||||
gp.value = &val;
|
||||
|
||||
if (ioctl(fd, DRM_IOCTL_I915_GETPARAM, &gp, sizeof(gp)))
|
||||
return 0;
|
||||
|
||||
return val;
|
||||
}
|
||||
|
||||
/* Ensure the gpu is idle by launching a nop execbuf and stalling for it. */
|
||||
void gem_quiescent_gpu(int fd)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user