mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
radv: fixup geometry clip emission since using the geom pass
Fixes: 2b35b60d: radv: move to using nir clip/cull merge pass.
Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
744317c9d2
commit
a58d03a5a2
1 changed files with 2 additions and 1 deletions
|
|
@ -4887,7 +4887,8 @@ LLVMModuleRef ac_translate_nir_to_llvm(LLVMTargetMachineRef tm,
|
|||
ralloc_free(ctx.phis);
|
||||
|
||||
if (nir->stage == MESA_SHADER_GEOMETRY) {
|
||||
shader_info->gs.gsvs_vertex_size = util_bitcount64(ctx.output_mask) * 16;
|
||||
unsigned addclip = ctx.num_output_clips + ctx.num_output_culls > 4;
|
||||
shader_info->gs.gsvs_vertex_size = (util_bitcount64(ctx.output_mask) + addclip) * 16;
|
||||
shader_info->gs.max_gsvs_emit_size = shader_info->gs.gsvs_vertex_size *
|
||||
nir->info->gs.vertices_out;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue