projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be2fb11
)
llvmpipe: return zero from floor_pot(zero)
author
Keith Whitwell
<keithw@vmware.com>
Wed, 15 Sep 2010 15:28:49 +0000
(16:28 +0100)
committer
Keith Whitwell
<keithw@vmware.com>
Wed, 15 Sep 2010 15:28:49 +0000
(16:28 +0100)
src/gallium/drivers/llvmpipe/lp_setup_tri.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_setup_tri.c
b/src/gallium/drivers/llvmpipe/lp_setup_tri.c
index 53ffb95505bdd6ae8e4b822a84222e69f5d5eb51..5090f82ab5f6d923165d1b9b63a1151f8a500e80 100644
(file)
--- a/
src/gallium/drivers/llvmpipe/lp_setup_tri.c
+++ b/
src/gallium/drivers/llvmpipe/lp_setup_tri.c
@@
-447,8
+447,10
@@
do_triangle_ccw(struct lp_setup_context *setup,
static INLINE uint32_t
floor_pot(uint32_t n)
{
- assert(n);
#if defined(PIPE_CC_GCC) && defined(PIPE_ARCH_X86)
+ if (n == 0)
+ return 0;
+
__asm__("bsr %1,%0"
: "=r" (n)
: "rm" (n));