mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-20 04:42:53 +00:00
Add Ivybridge support to intel_gpu_dump and the BLT tests.
This commit is contained in:
@@ -253,7 +253,7 @@ static void run(int object_size)
|
||||
exec[2].rsvd2 = 0;
|
||||
|
||||
ring = 0;
|
||||
if (IS_GEN6(intel_get_drm_devid(fd)))
|
||||
if (HAS_BLT_RING(intel_get_drm_devid(fd)))
|
||||
ring = I915_EXEC_BLT;
|
||||
|
||||
execbuf.buffers_ptr = (uintptr_t)exec;
|
||||
|
||||
@@ -189,7 +189,7 @@ copy(int fd, uint32_t dst, uint32_t src)
|
||||
exec.DR1 = exec.DR4 = 0;
|
||||
exec.num_cliprects = 0;
|
||||
exec.cliprects_ptr = 0;
|
||||
exec.flags = IS_GEN6(intel_get_drm_devid(fd)) ? I915_EXEC_BLT : 0;
|
||||
exec.flags = HAS_BLT_RING(intel_get_drm_devid(fd)) ? I915_EXEC_BLT : 0;
|
||||
exec.rsvd1 = exec.rsvd2 = 0;
|
||||
|
||||
ret = drmIoctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, &exec);
|
||||
|
||||
Reference in New Issue
Block a user