Commit 821d6865 authored by Icecream95's avatar Icecream95 Committed by Marge Bot
Browse files

panfrost: Add fast path for graphics work group computation


Reviewed-by: Alyssa Rosenzweig's avatarAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <mesa/mesa!10158>
parent c8620005
Pipeline #300027 waiting for manual action with stages
...@@ -550,9 +550,21 @@ panfrost_direct_draw(struct panfrost_context *ctx, ...@@ -550,9 +550,21 @@ panfrost_direct_draw(struct panfrost_context *ctx,
panfrost_statistics_record(ctx, info, draw); panfrost_statistics_record(ctx, info, draw);
struct mali_invocation_packed invocation; struct mali_invocation_packed invocation;
panfrost_pack_work_groups_compute(&invocation, if (info->instance_count > 1) {
1, vertex_count, info->instance_count, panfrost_pack_work_groups_compute(&invocation,
1, 1, 1, true); 1, vertex_count, info->instance_count,
1, 1, 1, true);
} else {
pan_pack(&invocation, INVOCATION, cfg) {
cfg.invocations = MALI_POSITIVE(vertex_count);
cfg.size_y_shift = 0;
cfg.size_z_shift = 0;
cfg.workgroups_x_shift = 0;
cfg.workgroups_y_shift = 0;
cfg.workgroups_z_shift = 32;
cfg.unknown_shift = 2;
}
}
/* Emit all sort of descriptors. */ /* Emit all sort of descriptors. */
mali_ptr varyings = 0, vs_vary = 0, fs_vary = 0, pos = 0, psiz = 0; mali_ptr varyings = 0, vs_vary = 0, fs_vary = 0, pos = 0, psiz = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment