diff options
author | Dave Airlie <[email protected]> | 2017-04-03 04:43:15 +0100 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-04-04 05:55:21 +1000 |
commit | 22b116171f88f2dcb1be2a5ea6cd64c0731670e9 (patch) | |
tree | 556935e0227f19b62d89d9d38c8bad03af34988f /src/amd/common | |
parent | 1171b304f30f77b6780891b2b0561b52234a1ec5 (diff) |
radv: fix interp at sample code.
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 <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/common')
-rw-r--r-- | src/amd/common/ac_nir_to_llvm.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index dfe2732f78d..6fd2a0c4f62 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -3556,12 +3556,10 @@ static LLVMValueRef visit_interp(struct nir_to_llvm_context *ctx, 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; } |