]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/i915: fix 945 fence register writes for fence 8 and above.
authorEric Anholt <eric@anholt.net>
Wed, 11 Mar 2009 05:34:49 +0000 (22:34 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 11 Mar 2009 18:02:06 +0000 (11:02 -0700)
commitdc529a4fe1ae4667c819437a94185e8581e1e680
tree88933130acf93d8715b42c232aae8be369e1ed0e
parentd7619c4b9c95cc9a2e7f0f4f7ae21165ab5cb1e7
drm/i915: fix 945 fence register writes for fence 8 and above.

The last 8 fence registers sit at a different offset, so when we went to set
fence number 8 in the lower offset, we instead set PGETBL_CTL, and the GPU
got all sorts of angry at us.

fd.o bug #20567.  Easily reproducible by running glxgears and killing it about
6 times.

Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_reg.h