panfrost: Pack compute Midgard properties
Now that we have XML for it. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6440>
This commit is contained in:

committed by
Tomeu Vizoso

parent
87c59514e9
commit
d475412859
@@ -327,16 +327,17 @@ panfrost_emit_compute_shader(struct panfrost_context *ctx,
|
||||
meta->bifrost2.uniform_count = ss->uniform_count;
|
||||
meta->bifrost1.uniform_buffer_count = panfrost_ubo_count(ctx, st);
|
||||
} else {
|
||||
meta->midgard1.uniform_count = ss->uniform_count;
|
||||
meta->midgard1.work_count = ss->work_reg_count;
|
||||
struct mali_midgard_properties_packed prop;
|
||||
|
||||
/* TODO: This is not conformant on ES3 */
|
||||
meta->midgard1.flags_hi = MALI_SUPPRESS_INF_NAN;
|
||||
pan_pack(&prop, MIDGARD_PROPERTIES, cfg) {
|
||||
cfg.uniform_buffer_count = panfrost_ubo_count(ctx, st);
|
||||
cfg.uniform_count = ss->uniform_count;
|
||||
cfg.work_register_count = ss->work_reg_count;
|
||||
cfg.writes_globals = ss->writes_global;
|
||||
cfg.suppress_inf_nan = true; /* XXX */
|
||||
}
|
||||
|
||||
meta->midgard1.flags_lo = 0x20;
|
||||
meta->midgard1.uniform_buffer_count = panfrost_ubo_count(ctx, st);
|
||||
|
||||
SET_BIT(meta->midgard1.flags_lo, MALI_WRITES_GLOBAL, ss->writes_global);
|
||||
memcpy(&meta->midgard1, &prop, sizeof(prop));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user