[965] Fix TTM relocation caching overzealousness.
authorEric Anholt <eric@anholt.net>
Tue, 5 Feb 2008 17:38:02 +0000 (09:38 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 5 Feb 2008 19:01:14 +0000 (11:01 -0800)
commitd14d36f9cc5be8b4c827653ee1245be00999357e
tree31ac397b3685fe44fd3dfc9fe9a8307878e83204
parent89faa648a585a435d8a2ca6d3759891606d36a84
[965] Fix TTM relocation caching overzealousness.

The failure mode that was a available was:
reloc 1 -> target_buf
exec: PRESUMED_OFFSET wrong, buffer migrates, r1 entry updated.
reloc 2 -> target_buf
exec: suppose buffer migrates again.  PRESUMED_OFFSET wrong. r2 entry updated.
reloc 1 -> target_buf
exec: suppose buffer doesn't migrate.  PRESUMED_OFFSET right. no relocations
      performed.  r1 has stale pointer at original location.

Failures were reported with OGLconform's VBO test and SPECviewperf90, though
I haven't confirmed that this fixes it.
src/mesa/drivers/dri/intel/intel_bufmgr_ttm.c