Update bufw handling in all gpus.

This fixes the softgpu as well, at least.
softgpu: small optimization, precompute tex info.