Interp at sample needs to use the center, since the sample
positions it retrieves are relative to the center.
This fixes a bunch of CTS tests with multisample_interpolation.
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
location = INTERP_CENTROID;
break;
case nir_intrinsic_interp_var_at_sample:
- location = INTERP_SAMPLE;
- src0 = get_src(ctx, instr->src[0]);
- break;
case nir_intrinsic_interp_var_at_offset:
location = INTERP_CENTER;
src0 = get_src(ctx, instr->src[0]);
+ break;
default:
break;
}