diff options
author | Keith Packard <keithp@keithp.com> | 2008-05-22 10:48:32 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2008-05-22 22:00:21 -0700 |
commit | a51c3a76ff415104426493a97ac686ccfe3f3926 (patch) | |
tree | c350968912458fa312c784dcd5b26c1532f38c43 /shared-core/drm.h | |
parent | da3f099a7c4a18468ff84819ed39e42bec641e11 (diff) |
[intel] Add debug code to verify the cached ring tail pointer.
Recording the tail pointer in a local variable improves performance, but if
someone messes up and fails to reload at the right time, the driver will
write commands to the wrong part of the ring and scramble execution badly.
This change (available by setting I915_RING_VALIDATE to 1) checks to make
sure the cached tail pointer matches the hardware tail pointer at each ring
buffer addition, calling BUG_ON when that's not true.
Diffstat (limited to 'shared-core/drm.h')
0 files changed, 0 insertions, 0 deletions