mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-22 01:10:32 +01:00
radv: use radv_get_vgt_outprim_type() to disable NGGC for points/lines
This shouldn't change anything because NGGC for points/lines are disabled at compile time for TES/GS. It's only unconditionally enabled for VS because with fast-GPL/ESO, the driver might not know the primitive topology at compile time and it must be disabled dynamically later. Note that NGGC supports culling lines now, so it could be enabled. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37022>
This commit is contained in:
parent
4cbadc85e0
commit
d14ff3eafe
1 changed files with 1 additions and 1 deletions
|
|
@ -10845,7 +10845,7 @@ radv_get_nggc_settings(struct radv_cmd_buffer *cmd_buffer, bool vp_y_inverted)
|
|||
* because we don't know the primitive topology at compile time, so we should
|
||||
* disable it dynamically for points or lines.
|
||||
*/
|
||||
const unsigned num_vertices_per_prim = radv_conv_prim_to_gs_out(d->vk.ia.primitive_topology, true) + 1;
|
||||
const unsigned num_vertices_per_prim = radv_get_vgt_outprim_type(cmd_buffer) + 1;
|
||||
if (num_vertices_per_prim != 3)
|
||||
return radv_nggc_none;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue