sna: Disable memcpy_to_tiled_x() uploads on 32-bit systems

It's far too slow due to the register starved instruction set producing
attrocious code and the extra overhead in the kernel for managing memory
mappings.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2013-01-11 01:30:43 +00:00
parent 220970b1a4
commit aead71051e
1 changed files with 9 additions and 0 deletions

View File

@ -483,6 +483,15 @@ fallback:
static bool upload_inplace__tiled(struct kgem *kgem, struct kgem_bo *bo)
{
#ifndef __x86_64__
/* Between a register starved compiler emitting attrocious code
* and the extra overhead in the kernel for managing the tight
* 32-bit address space, unless we have a 64-bit system,
* using memcpy_to_tiled_x() is extremely slow.
*/
return false;
#endif
if (kgem->gen < 050) /* bit17 swizzling :( */
return false;