panfrost: Fix border colour

The border colour was being set to the red colour for all channels.
Fixes tex-border-1 from piglit.

Fixes: f74186baa5 ("panfrost: XMLify Midgard samplers")
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6298>
This commit is contained in:
Icecream95
2020-08-13 19:35:00 +12:00
committed by Marge Bot
parent 8277334f39
commit 8557b1a8eb
+3 -3
View File
@@ -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];
}
}