mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
panfrost: Add valhall_has_blend_shader field
Required in a hot path for silly historical reasons, so add a field to save a pre-computed value thereof. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15797>
This commit is contained in:
parent
fed04de481
commit
58934dd666
1 changed files with 6 additions and 0 deletions
|
|
@ -202,6 +202,12 @@ struct panfrost_context {
|
|||
|
||||
struct panfrost_blend_state *blend;
|
||||
|
||||
/* On Valhall, does the current blend state use a blend shader for any
|
||||
* output? We need this information in a hot path to decide if
|
||||
* per-sample shading should be enabled.
|
||||
*/
|
||||
bool valhall_has_blend_shader;
|
||||
|
||||
struct pipe_viewport_state pipe_viewport;
|
||||
struct pipe_scissor_state scissor;
|
||||
struct pipe_blend_color blend_color;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue