mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
etnaviv: texture-desc: drop superfluous condition
After ad48411d72 ("etnaviv: fix linear_nearest / nearest_linear filters
on GC7000Lite") the code in both branches of the condition is exactly the
same, so there is no need for the condition at all.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18045>
This commit is contained in:
parent
fc2298ea31
commit
826e05eb2d
1 changed files with 4 additions and 9 deletions
|
|
@ -100,15 +100,10 @@ etna_create_sampler_state_desc(struct pipe_context *pipe,
|
|||
uint32_t max_lod_fp8 = MIN2(etna_float_to_fixp88(ss->max_lod), 0xfff);
|
||||
uint32_t max_lod_min = ss->min_img_filter != ss->mag_img_filter ? 4 : 0;
|
||||
|
||||
if (ss->min_mip_filter != PIPE_TEX_MIPFILTER_NONE) {
|
||||
cs->SAMP_LOD_MINMAX =
|
||||
VIVS_NTE_DESCRIPTOR_SAMP_LOD_MINMAX_MAX(MAX2(max_lod_fp8, max_lod_min)) |
|
||||
VIVS_NTE_DESCRIPTOR_SAMP_LOD_MINMAX_MIN(min_lod_fp8);
|
||||
} else {
|
||||
cs->SAMP_LOD_MINMAX =
|
||||
VIVS_NTE_DESCRIPTOR_SAMP_LOD_MINMAX_MAX(MAX2(max_lod_fp8, max_lod_min)) |
|
||||
VIVS_NTE_DESCRIPTOR_SAMP_LOD_MINMAX_MIN(min_lod_fp8);
|
||||
}
|
||||
cs->SAMP_LOD_MINMAX =
|
||||
VIVS_NTE_DESCRIPTOR_SAMP_LOD_MINMAX_MAX(MAX2(max_lod_fp8, max_lod_min)) |
|
||||
VIVS_NTE_DESCRIPTOR_SAMP_LOD_MINMAX_MIN(min_lod_fp8);
|
||||
|
||||
cs->SAMP_LOD_BIAS =
|
||||
VIVS_NTE_DESCRIPTOR_SAMP_LOD_BIAS_BIAS(etna_float_to_fixp88(ss->lod_bias)) |
|
||||
COND(ss->lod_bias != 0.0, VIVS_NTE_DESCRIPTOR_SAMP_LOD_BIAS_ENABLE);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue