load_attribute(gallivm, args, key, 0, attr_pos);
pixel_center = lp_build_const_vec(gallivm, typef4,
- key->pixel_center_half ? 0.5 : 0.0);
+ (!key->multisample && key->pixel_center_half) ? 0.5 : 0.0);
/*
* xy are first two elems in v0a/v1a/v2a but just use vec4 arit
key->num_inputs = fs->info.base.num_inputs;
key->flatshade_first = lp->rasterizer->flatshade_first;
key->pixel_center_half = lp->rasterizer->half_pixel_center;
+ key->multisample = lp->rasterizer->multisample;
key->twoside = lp->rasterizer->light_twoside;
key->size = Offset(struct lp_setup_variant_key,
inputs[key->num_inputs]);
unsigned pixel_center_half:1;
unsigned twoside:1;
unsigned floating_point_depth:1;
- unsigned pad:4;
+ unsigned multisample:1;
+ unsigned pad:3;
/* TODO: get those floats out of the key and use a jit_context for setup */
float pgon_offset_units;