mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
etnaviv: set texture INT_FILTER bit
This should improve texture sampling performance on GC3000. Signed-off-by: Jonathan Marek <jonathan@marek.ca> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
This commit is contained in:
parent
c877142fca
commit
1249cf19b0
1 changed files with 2 additions and 1 deletions
|
|
@ -187,7 +187,8 @@ etna_create_sampler_view_state(struct pipe_context *pctx, struct pipe_resource *
|
|||
VIVS_TE_SAMPLER_LOG_SIZE_WIDTH(etna_log2_fixp55(res->base.width0)) |
|
||||
VIVS_TE_SAMPLER_LOG_SIZE_HEIGHT(etna_log2_fixp55(base_height)) |
|
||||
COND(util_format_is_srgb(so->format) && !astc, VIVS_TE_SAMPLER_LOG_SIZE_SRGB) |
|
||||
COND(astc, VIVS_TE_SAMPLER_LOG_SIZE_ASTC);
|
||||
COND(astc, VIVS_TE_SAMPLER_LOG_SIZE_ASTC) |
|
||||
COND(!util_format_is_float(so->format) && so->target != PIPE_TEXTURE_3D, VIVS_TE_SAMPLER_LOG_SIZE_INT_FILTER);
|
||||
sv->TE_SAMPLER_3D_CONFIG =
|
||||
VIVS_TE_SAMPLER_3D_CONFIG_DEPTH(base_depth) |
|
||||
VIVS_TE_SAMPLER_3D_CONFIG_LOG_DEPTH(etna_log2_fixp55(base_depth));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue