crocus/gen8: fix wrap mode needs border color.
authorDave Airlie <airlied@redhat.com>
Mon, 12 Jul 2021 04:21:03 +0000 (14:21 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 12 Jul 2021 04:24:35 +0000 (14:24 +1000)
missing piece here.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11821>

src/gallium/drivers/crocus/crocus_state.c

index 78b667d..59fa57d 100644 (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
 }
 
 /**