mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 04:30:10 +01:00
panfrost: Use pack for shaderless
We'll need a more aggressive refactor for this soon, I think. 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:
parent
19ded1e121
commit
41aad9aff9
1 changed files with 9 additions and 3 deletions
|
|
@ -680,9 +680,15 @@ panfrost_emit_frag_shader(struct panfrost_context *ctx,
|
|||
fragmeta->sampler_count = 0;
|
||||
|
||||
/* This feature is not known to work on Bifrost */
|
||||
fragmeta->midgard1.work_count = 1;
|
||||
fragmeta->midgard1.uniform_count = 0;
|
||||
fragmeta->midgard1.uniform_buffer_count = 0;
|
||||
struct mali_midgard_properties_packed prop;
|
||||
|
||||
pan_pack(&prop, MIDGARD_PROPERTIES, cfg) {
|
||||
cfg.work_register_count = 1;
|
||||
cfg.depth_source = MALI_DEPTH_SOURCE_FIXED_FUNCTION;
|
||||
cfg.early_z_enable = true;
|
||||
}
|
||||
|
||||
memcpy(&fragmeta->midgard1, &prop, sizeof(prop));
|
||||
}
|
||||
|
||||
/* If there is a blend shader, work registers are shared. We impose 8
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue