mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 04:30:10 +01:00
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:
parent
2a065fc446
commit
41960652e1
1 changed files with 2 additions and 14 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue