summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2009-08-24 15:55:15 +0100
committerJosé Fonseca <[email protected]>2009-08-29 09:21:42 +0100
commit8aa62cead71b4d06e49fccf02405c1ce649186fd (patch)
tree8141260565f8d2ee8aa3193fda0d0718a19a0175 /src/gallium/drivers
parent1e6cc1cf3728f715eb9c63c942b09fe42570cfc2 (diff)
llvmpipe: Fix shader variant key construction.
Fixes the blank screen on non-64bit mode.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_state_fs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c
index 361b30699c6..4981432eb38 100644
--- 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);
}