mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
radeonsi: fix COMPAT_MODE on gfx8-9
It was set in the wrong dword.
Fixes: e673bb4ae4 ("amd,util: fix how lod bias is converted to fixed-point")
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21525>
This commit is contained in:
parent
fb70d8cf9c
commit
98328a71dc
1 changed files with 2 additions and 2 deletions
|
|
@ -4826,8 +4826,8 @@ static void *si_create_sampler_state(struct pipe_context *ctx,
|
|||
rstate->val[2] |= S_008F38_LOD_BIAS(S_FIXED(CLAMP(state->lod_bias, -32, 31), 8)) |
|
||||
S_008F38_ANISO_OVERRIDE_GFX10(1);
|
||||
} else {
|
||||
rstate->val[2] |= S_008F30_COMPAT_MODE(sctx->gfx_level >= GFX8) |
|
||||
S_008F38_LOD_BIAS(S_FIXED(CLAMP(state->lod_bias, -16, 15), 8)) |
|
||||
rstate->val[0] |= S_008F30_COMPAT_MODE(sctx->gfx_level >= GFX8);
|
||||
rstate->val[2] |= S_008F38_LOD_BIAS(S_FIXED(CLAMP(state->lod_bias, -16, 15), 8)) |
|
||||
S_008F38_DISABLE_LSB_CEIL(sctx->gfx_level <= GFX8) |
|
||||
S_008F38_FILTER_PREC_FIX(1) |
|
||||
S_008F38_ANISO_OVERRIDE_GFX8(sctx->gfx_level >= GFX8);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue