Bläddra i källkod

llvmpipe: Fix shader variant key construction.

Fixes the blank screen on non-64bit mode.
tags/mesa_7_6_rc1
José Fonseca 16 år sedan
förälder
incheckning
8aa62cead7
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2
    2
      src/gallium/drivers/llvmpipe/lp_state_fs.c

+ 2
- 2
src/gallium/drivers/llvmpipe/lp_state_fs.c Visa fil

@@ -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);
}



Laddar…
Avbryt
Spara