OSDN Git Service

util: Use sizeof(void *) rather than 0 as the fallback cache line size
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Wed, 5 Jun 2013 14:38:27 +0000 (15:38 +0100)
committerAdam Jackson <ajax@redhat.com>
Mon, 10 Jun 2013 20:26:09 +0000 (16:26 -0400)
commit337f21bc356a89a9c755aebabb64ba381a59e39b
tree6ae7b5beb859e3f69a65e472f4f02d3f0d63474b
parentba6cd796dd60635ca12f036ba9de5b907d8e82f5
util: Use sizeof(void *) rather than 0 as the fallback cache line size

Without this, llvmpipe ends up giving a zero size to all uncompressed textures
on non-x86 systems, since align() cannot handle a 0 alignment.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Richard Sandiford <rsandifo@linux.vnet.ibm.com>
src/gallium/auxiliary/util/u_cpu_detect.c