panfrost: Specialize rasterizer state for Valhall

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16035>
This commit is contained in:
Alyssa Rosenzweig 2022-04-19 09:54:10 -04:00 committed by Marge Bot
parent 818bbcecb2
commit 603c06d00f

View file

@ -3679,6 +3679,7 @@ panfrost_create_rasterizer_state(
/* Gauranteed with the core GL call, so don't expose ARB_polygon_offset */
assert(cso->offset_clamp == 0.0);
#if PAN_ARCH <= 7
pan_pack(&so->multisample, MULTISAMPLE_MISC, cfg) {
cfg.multisample_enable = cso->multisample;
cfg.fixed_function_near_discard = cso->depth_clip_near;
@ -3691,6 +3692,7 @@ panfrost_create_rasterizer_state(
cfg.back_facing_depth_bias = cso->offset_tri;
cfg.single_sampled_lines = !cso->multisample;
}
#endif
return so;
}