mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
crocus/gen8: handle sampler differences
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11507>
This commit is contained in:
parent
661f108d80
commit
edf05076a4
1 changed files with 6 additions and 0 deletions
|
|
@ -298,7 +298,11 @@ translate_wrap(unsigned pipe_wrap, bool either_nearest)
|
|||
{
|
||||
static const unsigned map[] = {
|
||||
[PIPE_TEX_WRAP_REPEAT] = TCM_WRAP,
|
||||
#if GFX_VER == 8
|
||||
[PIPE_TEX_WRAP_CLAMP] = TCM_HALF_BORDER,
|
||||
#else
|
||||
[PIPE_TEX_WRAP_CLAMP] = TCM_CLAMP_BORDER,
|
||||
#endif
|
||||
[PIPE_TEX_WRAP_CLAMP_TO_EDGE] = TCM_CLAMP,
|
||||
[PIPE_TEX_WRAP_CLAMP_TO_BORDER] = TCM_CLAMP_BORDER,
|
||||
[PIPE_TEX_WRAP_MIRROR_REPEAT] = TCM_MIRROR,
|
||||
|
|
@ -308,8 +312,10 @@ translate_wrap(unsigned pipe_wrap, bool either_nearest)
|
|||
[PIPE_TEX_WRAP_MIRROR_CLAMP] = -1,
|
||||
[PIPE_TEX_WRAP_MIRROR_CLAMP_TO_BORDER] = -1,
|
||||
};
|
||||
#if GFX_VER < 8
|
||||
if (pipe_wrap == PIPE_TEX_WRAP_CLAMP && either_nearest)
|
||||
return TCM_CLAMP;
|
||||
#endif
|
||||
return map[pipe_wrap];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue