mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
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:
parent
818bbcecb2
commit
603c06d00f
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue