Prep for the next patch.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5458>
int ir3_sched(struct ir3 *ir);
struct ir3_context;
-bool ir3_postsched(struct ir3 *ir);
+bool ir3_postsched(struct ir3 *ir, struct ir3_shader_variant *v);
bool ir3_a6xx_fixup_atomic_dests(struct ir3 *ir, struct ir3_shader_variant *so);
goto out;
}
- IR3_PASS(ir, ir3_postsched);
+ IR3_PASS(ir, ir3_postsched, so);
if (compiler->gpu_id >= 600) {
IR3_PASS(ir, ir3_a6xx_fixup_atomic_dests, so);
struct ir3_postsched_ctx {
struct ir3 *ir;
+ struct ir3_shader_variant *v;
+
void *mem_ctx;
struct ir3_block *block; /* the current block */
struct dag *dag;
}
bool
-ir3_postsched(struct ir3 *ir)
+ir3_postsched(struct ir3 *ir, struct ir3_shader_variant *v)
{
struct ir3_postsched_ctx ctx = {
.ir = ir,
+ .v = v,
};
ir3_remove_nops(ir);