*/
can_emit =
LLVMBuildICmp(ctx->ac.builder, LLVMIntULT, gs_next_vertex,
- LLVMConstInt(ctx->ac.i32, shader->selector->gs_max_out_vertices, 0), "");
+ LLVMConstInt(ctx->ac.i32, shader->selector->info.base.gs.vertices_out, 0), "");
- bool use_kill = !info->writes_memory;
+ bool use_kill = !info->base.writes_memory;
if (use_kill) {
ac_build_kill_if_false(&ctx->ac, can_emit);
} else {
LLVMValueRef out_val = LLVMBuildLoad(ctx->ac.builder, addrs[4 * i + chan], "");
LLVMValueRef voffset =
- LLVMConstInt(ctx->ac.i32, offset * shader->selector->gs_max_out_vertices, 0);
+ LLVMConstInt(ctx->ac.i32, offset * shader->selector->info.base.gs.vertices_out, 0);
offset++;
voffset = LLVMBuildAdd(ctx->ac.builder, voffset, gs_next_vertex, "");
if (!num_components)
continue;
- stride = 4 * num_components * sel->gs_max_out_vertices;
+ stride = 4 * num_components * sel->info.base.gs.vertices_out;
/* Limit on the stride field for <= GFX7. */
assert(stride < (1 << 14));
}
LLVMValueRef soffset =
- LLVMConstInt(ctx.ac.i32, offset * gs_selector->gs_max_out_vertices * 16 * 4, 0);
+ LLVMConstInt(ctx.ac.i32, offset * gs_selector->info.base.gs.vertices_out * 16 * 4, 0);
offset++;
outputs[i].values[chan] =