agx/nir_lower_tess: drop pointless helpers
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34638>
This commit is contained in:
committed by
Marge Bot
parent
2a065fc446
commit
41960652e1
@@ -15,18 +15,6 @@
|
||||
#include "nir_intrinsics_indices.h"
|
||||
#include "shader_enums.h"
|
||||
|
||||
static nir_def *
|
||||
tcs_patch_id(nir_builder *b)
|
||||
{
|
||||
return nir_channel(b, nir_load_workgroup_id(b), 0);
|
||||
}
|
||||
|
||||
static nir_def *
|
||||
tcs_instance_id(nir_builder *b)
|
||||
{
|
||||
return nir_channel(b, nir_load_workgroup_id(b), 1);
|
||||
}
|
||||
|
||||
static nir_def *
|
||||
tcs_unrolled_id(nir_builder *b)
|
||||
{
|
||||
@@ -111,10 +99,10 @@ lower_tcs_impl(nir_builder *b, nir_intrinsic_instr *intr)
|
||||
return NIR_LOWER_INSTR_PROGRESS_REPLACE;
|
||||
|
||||
case nir_intrinsic_load_primitive_id:
|
||||
return tcs_patch_id(b);
|
||||
return nir_channel(b, nir_load_workgroup_id(b), 0);
|
||||
|
||||
case nir_intrinsic_load_instance_id:
|
||||
return tcs_instance_id(b);
|
||||
return nir_channel(b, nir_load_workgroup_id(b), 1);
|
||||
|
||||
case nir_intrinsic_load_invocation_id:
|
||||
if (b->shader->info.tess.tcs_vertices_out == 1)
|
||||
|
||||
Reference in New Issue
Block a user