We need this info to program some registers.
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
ralloc_free(ctx.defs);
ralloc_free(ctx.phis);
+ if (nir->stage == MESA_SHADER_GEOMETRY) {
+ shader_info->gs.gsvs_vertex_size = util_bitcount64(ctx.output_mask) * 16;
+ shader_info->gs.max_gsvs_emit_size = shader_info->gs.gsvs_vertex_size *
+ nir->info->gs.vertices_out;
+ }
return ctx.module;
}
unsigned vertices_out;
unsigned output_prim;
unsigned invocations;
+ unsigned gsvs_vertex_size;
+ unsigned max_gsvs_emit_size;
} gs;
};
};