crocus/gen8: fix wrap mode needs border color.

missing piece here.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11821>
This commit is contained in:
Dave Airlie 2021-07-12 14:21:03 +10:00
parent dd98918a5a
commit ead3340262
1 changed files with 4 additions and 0 deletions

View File

@ -2226,7 +2226,11 @@ crocus_bind_rasterizer_state(struct pipe_context *ctx, void *state)
static bool
wrap_mode_needs_border_color(unsigned wrap_mode)
{
#if GFX_VER == 8
return wrap_mode == TCM_CLAMP_BORDER || wrap_mode == TCM_HALF_BORDER;
#else
return wrap_mode == TCM_CLAMP_BORDER;
#endif
}
/**