pan/lower_blend: Rename is_bifrost->scalar

Don't leak ISA details.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10393>
This commit is contained in:
Alyssa Rosenzweig 2021-04-21 12:20:42 -04:00 committed by Marge Bot
parent f5211fcbed
commit 86b0eddf2b
3 changed files with 3 additions and 6 deletions

View file

@ -486,7 +486,7 @@ pan_blend_create_shader(const struct panfrost_device *dev,
.colormask = rt_state->equation.color_mask,
.half = nir_type == nir_type_float16,
.format = rt_state->format,
.is_bifrost = pan_is_bifrost(dev),
.scalar = pan_is_bifrost(dev),
};
if (!rt_state->equation.blend_enable) {

View file

@ -262,10 +262,7 @@ nir_blend(
/* Grab the blend constant ahead of time */
nir_ssa_def *bconst;
if (options.is_bifrost) {
/* Bifrost is a scalar architecture, so let's split loads now to avoid a
* lowering pass.
*/
if (options.scalar) {
bconst = nir_vec4(b,
nir_load_blend_const_color_r_float(b),
nir_load_blend_const_color_g_float(b),

View file

@ -56,7 +56,7 @@ typedef struct {
/* Use fp16 instead of fp32 */
bool half;
bool is_bifrost;
bool scalar;
nir_ssa_def *src1;
} nir_lower_blend_options;