[Mesa-dev] [PATCH] ac/nir: don't apply slice rounding on txf_ms

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Wed Feb 28 23:37:17 UTC 2018


Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

On Thu, Mar 1, 2018 at 12:33 AM, Timothy Arceri <tarceri at itsqueeze.com> wrote:
> Thanks!
>
> Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
>
> On 01/03/18 10:26, Dave Airlie wrote:
>>
>> From: Dave Airlie <airlied at redhat.com>
>>
>> This matches the tgsi code.
>>
>> Fixes arb_texture_multisample texelFetch piglit tests.
>>
>> Signed-off-by: Dave Airlie <airlied at redhat.com>
>> ---
>>   src/amd/common/ac_nir_to_llvm.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/src/amd/common/ac_nir_to_llvm.c
>> b/src/amd/common/ac_nir_to_llvm.c
>> index 8b662f884f..bc72d2a6f1 100644
>> --- a/src/amd/common/ac_nir_to_llvm.c
>> +++ b/src/amd/common/ac_nir_to_llvm.c
>> @@ -5105,7 +5105,7 @@ static void visit_tex(struct ac_nir_context *ctx,
>> nir_tex_instr *instr)
>>                              instr->sampler_dim ==
>> GLSL_SAMPLER_DIM_SUBPASS ||
>>                              instr->sampler_dim ==
>> GLSL_SAMPLER_DIM_SUBPASS_MS) &&
>>                             instr->is_array &&
>> -                           instr->op != nir_texop_txf) {
>> +                           instr->op != nir_texop_txf && instr->op !=
>> nir_texop_txf_ms) {
>>                                 coords[2] = apply_round_slice(&ctx->ac,
>> coords[2]);
>>                         }
>>                         address[count++] = coords[2];
>>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list