Mesa (main): crocus/gen8: fix wrap mode needs border color.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jul 12 04:38:42 UTC 2021


Module: Mesa
Branch: main
Commit: ead3340262195822371756d2fe6cc8e31407e62b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ead3340262195822371756d2fe6cc8e31407e62b

Author: Dave Airlie <airlied at redhat.com>
Date:   Mon Jul 12 14:21:03 2021 +1000

crocus/gen8: fix wrap mode needs border color.

missing piece here.

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

---

 src/gallium/drivers/crocus/crocus_state.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gallium/drivers/crocus/crocus_state.c b/src/gallium/drivers/crocus/crocus_state.c
index 78b667d7e1a..59fa57d0646 100644
--- a/src/gallium/drivers/crocus/crocus_state.c
+++ b/src/gallium/drivers/crocus/crocus_state.c
@@ -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
 }
 
 /**



More information about the mesa-commit mailing list