projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e6cc1c
)
llvmpipe: Fix shader variant key construction.
author
José Fonseca
<jfonseca@vmware.com>
Mon, 24 Aug 2009 14:55:15 +0000
(15:55 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Sat, 29 Aug 2009 08:21:42 +0000
(09:21 +0100)
Fixes the blank screen on non-64bit mode.
src/gallium/drivers/llvmpipe/lp_state_fs.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_state_fs.c
b/src/gallium/drivers/llvmpipe/lp_state_fs.c
index 361b30699c6fc5761abd5f21b32b42194f6a3b05..4981432eb382592004d652bd1a148e56aecf4f3c 100644
(file)
--- a/
src/gallium/drivers/llvmpipe/lp_state_fs.c
+++ b/
src/gallium/drivers/llvmpipe/lp_state_fs.c
@@
-663,14
+663,14
@@
make_variant_key(struct llvmpipe_context *lp,
{
memset(key, 0, sizeof *key);
- memcpy(&key->depth, &lp->depth_stencil->depth, sizeof
&
key->depth);
+ memcpy(&key->depth, &lp->depth_stencil->depth, sizeof key->depth);
key->alpha.enabled = lp->depth_stencil->alpha.enabled;
if(key->alpha.enabled)
key->alpha.func = lp->depth_stencil->alpha.func;
/* alpha.ref_value is passed in jit_context */
- memcpy(&key->blend, lp->blend, sizeof
&
key->blend);
+ memcpy(&key->blend, lp->blend, sizeof key->blend);
}