radv: Only use TES vertex offset 2 for triangles and quads.
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15837>
This commit is contained in:
parent
e02c71d6c5
commit
394b93bfeb
|
@ -1684,8 +1684,10 @@ radv_postprocess_config(const struct radv_device *device, const struct ac_shader
|
||||||
*/
|
*/
|
||||||
bool need_gs_vtx_offset2 = !info->is_ngg_passthrough || info->gs.vertices_in >= 3;
|
bool need_gs_vtx_offset2 = !info->is_ngg_passthrough || info->gs.vertices_in >= 3;
|
||||||
|
|
||||||
|
/* TES only needs vertex offset 2 for triangles or quads. */
|
||||||
if (stage == MESA_SHADER_TESS_EVAL)
|
if (stage == MESA_SHADER_TESS_EVAL)
|
||||||
need_gs_vtx_offset2 &= info->tes._primitive_mode != TESS_PRIMITIVE_ISOLINES;
|
need_gs_vtx_offset2 &= info->tes._primitive_mode == TESS_PRIMITIVE_TRIANGLES ||
|
||||||
|
info->tes._primitive_mode == TESS_PRIMITIVE_QUADS;
|
||||||
|
|
||||||
if (info->uses_invocation_id) {
|
if (info->uses_invocation_id) {
|
||||||
gs_vgpr_comp_cnt = 3; /* VGPR3 contains InvocationID. */
|
gs_vgpr_comp_cnt = 3; /* VGPR3 contains InvocationID. */
|
||||||
|
|
Loading…
Reference in New Issue