Revert "intel: don't apply the relocation optimization if a target"
authorEric Anholt <eric@anholt.net>
Fri, 1 Feb 2008 02:43:51 +0000 (18:43 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 2 Feb 2008 00:02:37 +0000 (16:02 -0800)
commitf85d34e425b14982cec6db9c7f5e91ea8d23ee30
tree7f0bd312f2ef409364d1d2eddf1a4f57396ecee6
parent7eca6be25f31cbbe5b72a70bf6b1e17c0e6df34d
Revert "intel: don't apply the relocation optimization if a target"

This reverts commit e2cb905bc6e23eaafaeeb2abdc9480e70959ee3f.

It was a reversion of an optimization hidden as otherwise.
pre_target_buf_handle was always NULL, so the optimization was never enabled,
rather than fixing the important optimization (resulting in 25-50% performance
loss).
src/mesa/drivers/dri/intel/intel_bufmgr_ttm.c