From: Icecream95 Date: Thu, 13 Aug 2020 07:35:00 +0000 (+1200) Subject: panfrost: Fix border colour X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8557b1a8ebeef466df3c912ecae02d85a8617b76;p=mesa.git panfrost: Fix border colour The border colour was being set to the red colour for all channels. Fixes tex-border-1 from piglit. Fixes: f74186baa5e ("panfrost: XMLify Midgard samplers") Reviewed-by: Tomeu Vizoso Part-of: --- diff --git a/src/gallium/drivers/panfrost/pan_cmdstream.c b/src/gallium/drivers/panfrost/pan_cmdstream.c index f8248f137ca..31c19679b6a 100644 --- a/src/gallium/drivers/panfrost/pan_cmdstream.c +++ b/src/gallium/drivers/panfrost/pan_cmdstream.c @@ -420,9 +420,9 @@ void panfrost_sampler_desc_init(const struct pipe_sampler_state *cso, cfg.seamless_cube_map = cso->seamless_cube_map; cfg.border_color_r = cso->border_color.f[0]; - cfg.border_color_g = cso->border_color.f[0]; - cfg.border_color_b = cso->border_color.f[0]; - cfg.border_color_a = cso->border_color.f[0]; + cfg.border_color_g = cso->border_color.f[1]; + cfg.border_color_b = cso->border_color.f[2]; + cfg.border_color_a = cso->border_color.f[3]; } }