From: Eric Anholt Date: Thu, 3 Jan 2019 19:31:37 +0000 (-0800) Subject: v3d: Remove dead switch cases and comments from v3d_nir_lower_io. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b0e008625706c34758defffa860d087d746261b5;p=mesa.git v3d: Remove dead switch cases and comments from v3d_nir_lower_io. Moving things to NIR left this mess around. All we lower now is uniforms. --- diff --git a/src/broadcom/compiler/v3d_nir_lower_io.c b/src/broadcom/compiler/v3d_nir_lower_io.c index 1c1665f5831..db339f87a53 100644 --- a/src/broadcom/compiler/v3d_nir_lower_io.c +++ b/src/broadcom/compiler/v3d_nir_lower_io.c @@ -28,10 +28,9 @@ * Walks the NIR generated by TGSI-to-NIR or GLSL-to-NIR to lower its io * intrinsics into something amenable to the V3D architecture. * - * Currently, it splits VS inputs and uniforms into scalars, drops any - * non-position outputs in coordinate shaders, and fixes up the addressing on - * indirect uniform loads. FS input and VS output scalarization is handled by - * nir_lower_io_to_scalar(). + * Currently, it just splits uniforms into scalars, and fixes up the + * addressing on indirect uniform loads. FS input and VS output scalarization + * is handled by nir_lower_io_to_scalar(). */ static void @@ -95,14 +94,10 @@ v3d_nir_lower_io_instr(struct v3d_compile *c, nir_builder *b, nir_intrinsic_instr *intr = nir_instr_as_intrinsic(instr); switch (intr->intrinsic) { - case nir_intrinsic_load_input: - break; - case nir_intrinsic_load_uniform: v3d_nir_lower_uniform(c, b, intr); break; - case nir_intrinsic_load_user_clip_plane: default: break; }