panfrost: Precompute bifrost_blend_type_from_nir
authorAlyssa Rosenzweig <alyssa@collabora.com>
Fri, 14 May 2021 21:43:35 +0000 (17:43 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 18 May 2021 22:51:56 +0000 (22:51 +0000)
commit5a8e1dfaf36d637929b9430eb72545f8e6fb7ee2
tree87f15b1de9261ceb95d1ac30049d403180687f3d
parent87256d335b929bb86f87033456775edd9b337823
panfrost: Precompute bifrost_blend_type_from_nir

Needed in the draw call hot path. Do it at compile time.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10869>
src/gallium/drivers/panfrost/pan_cmdstream.c
src/panfrost/lib/pan_shader.c
src/panfrost/util/pan_ir.h