Add Ivybridge support to intel_gpu_dump and the BLT tests.

This commit is contained in:
Eric Anholt
2011-05-06 12:15:50 -07:00
parent a825173a5f
commit d73cdde45a
5 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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);