radv,aco: do not disable anisotropy filtering for non-mipmap images
This fixes dEQP-VK.texture.filtering_anisotropy.single_level.anisotropy_*.mag_linear_min_linear. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14171>
This commit is contained in:
committed by
Marge Bot
parent
8a327722d5
commit
5ce4017a2b
@@ -9097,27 +9097,6 @@ tex_fetch_ptrs(isel_context* ctx, nir_tex_instr* instr, Temp* res_ptr, Temp* sam
|
||||
}
|
||||
if (samp_ptr) {
|
||||
*samp_ptr = get_sampler_desc(ctx, sampler_deref_instr, ACO_DESC_SAMPLER, instr, false);
|
||||
|
||||
if (instr->sampler_dim < GLSL_SAMPLER_DIM_RECT && ctx->options->chip_class < GFX8) {
|
||||
/* fix sampler aniso on SI/CI: samp[0] = samp[0] & img[7] */
|
||||
Builder bld(ctx->program, ctx->block);
|
||||
|
||||
/* to avoid unnecessary moves, we split and recombine sampler and image */
|
||||
Temp img[8] = {bld.tmp(s1), bld.tmp(s1), bld.tmp(s1), bld.tmp(s1),
|
||||
bld.tmp(s1), bld.tmp(s1), bld.tmp(s1), bld.tmp(s1)};
|
||||
Temp samp[4] = {bld.tmp(s1), bld.tmp(s1), bld.tmp(s1), bld.tmp(s1)};
|
||||
bld.pseudo(aco_opcode::p_split_vector, Definition(img[0]), Definition(img[1]),
|
||||
Definition(img[2]), Definition(img[3]), Definition(img[4]), Definition(img[5]),
|
||||
Definition(img[6]), Definition(img[7]), *res_ptr);
|
||||
bld.pseudo(aco_opcode::p_split_vector, Definition(samp[0]), Definition(samp[1]),
|
||||
Definition(samp[2]), Definition(samp[3]), *samp_ptr);
|
||||
|
||||
samp[0] = bld.sop2(aco_opcode::s_and_b32, bld.def(s1), bld.def(s1, scc), samp[0], img[7]);
|
||||
*res_ptr = bld.pseudo(aco_opcode::p_create_vector, bld.def(s8), img[0], img[1], img[2],
|
||||
img[3], img[4], img[5], img[6], img[7]);
|
||||
*samp_ptr = bld.pseudo(aco_opcode::p_create_vector, bld.def(s4), samp[0], samp[1], samp[2],
|
||||
samp[3]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user