mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 19:58:09 +02:00
r600: fix the evergreen sampler when the minification and the magnification are not identical
This change fixes the evergreen nonconformity issue on non-mipmap textures when the minification and the magnification are not in the same state. This modification disables5278436d67when the minification and the magnification are different. This fixes the nonconformity without new regressions. Anyway, I was unable to reproduce the issue described by5278436d67on palm and cayman. This change was tested on cayman and palm. It fixes 84 deqp-gles2 tests and 128 deqp-gles3 tests: deqp-gles2/functional/texture/filtering/2d/linear_nearest_* deqp-gles2/functional/texture/filtering/2d/nearest_linear_* deqp-gles2/functional/texture/filtering/cube/linear_nearest_* deqp-gles2/functional/texture/filtering/cube/nearest_linear_* deqp-gles2/functional/texture/vertex/2d/filtering/linear_nearest_* deqp-gles2/functional/texture/vertex/2d/filtering/nearest_linear_* deqp-gles2/functional/texture/vertex/cube/filtering/linear_nearest_* deqp-gles2/functional/texture/vertex/cube/filtering/nearest_linear_* deqp-gles3/functional/texture/filtering/2d/combinations/linear_nearest_* deqp-gles3/functional/texture/filtering/2d/combinations/nearest_linear_* deqp-gles3/functional/texture/filtering/2d_array/combinations/linear_nearest_* deqp-gles3/functional/texture/filtering/2d_array/combinations/nearest_linear_* deqp-gles3/functional/texture/filtering/3d/combinations/linear_nearest_* deqp-gles3/functional/texture/filtering/3d/combinations/nearest_linear_* deqp-gles3/functional/texture/filtering/cube/combinations/linear_nearest_* deqp-gles3/functional/texture/filtering/cube/combinations/nearest_linear_* deqp-gles3/functional/texture/vertex/2d/filtering/linear_nearest_* deqp-gles3/functional/texture/vertex/2d/filtering/nearest_linear_* deqp-gles3/functional/texture/vertex/2d_array/filtering/linear_nearest_* deqp-gles3/functional/texture/vertex/2d_array/filtering/nearest_linear_* deqp-gles3/functional/texture/vertex/3d/filtering/linear_nearest_* deqp-gles3/functional/texture/vertex/3d/filtering/nearest_linear_* deqp-gles3/functional/texture/vertex/cube/filtering/linear_nearest_* deqp-gles3/functional/texture/vertex/cube/filtering/nearest_linear_* Fixes:5278436d67("r600: force LOD range to be only one value when mip.min filter is NONE") Signed-off-by: Patrick Lerda <patrick9876@free.fr> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32185>
This commit is contained in:
parent
42be38a8fb
commit
4d24995adb
1 changed files with 2 additions and 1 deletions
|
|
@ -595,7 +595,8 @@ static void *evergreen_create_sampler_state(struct pipe_context *ctx,
|
|||
* MIP_FILTER will also be set to NONE. However, if more then one LOD is
|
||||
* configured, then the texture lookup seems to fail for some specific texture
|
||||
* formats. Forcing the number of LODs to one in this case fixes it. */
|
||||
if (state->min_mip_filter == PIPE_TEX_MIPFILTER_NONE)
|
||||
if (state->min_mip_filter == PIPE_TEX_MIPFILTER_NONE &&
|
||||
state->mag_img_filter == state->min_img_filter)
|
||||
max_lod = state->min_lod;
|
||||
|
||||
ss->border_color_use = sampler_state_needs_border_color(state);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue