]> git.baikalelectronics.ru Git - kernel.git/commit
drm/915: fix relaxed tiling on gen2: tile height
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 12 May 2011 21:17:20 +0000 (22:17 +0100)
committerKeith Packard <keithp@keithp.com>
Sat, 4 Jun 2011 17:41:12 +0000 (10:41 -0700)
commita1c1fbf8f89cd716321bf364df3ecbce5360b1c0
tree68eb78019ecddcb91c025f1f0d2dd1c0e3a2ba64
parent005d585701c9dc1056f67b5bdb089bac0376cce6
drm/915: fix relaxed tiling on gen2: tile height

A tile on gen2 has a size of 2kb, stride of 128 bytes and 16 rows.

Userspace was broken and assumed 8 rows. Chris Wilson noted that the
kernel unfortunately can't reliable check that because libdrm rounds
up the size to the next bucket.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/i915_gem.c