OSDN Git Service

nir: Print the components referenced for split or packed shader in/outs.
authorEric Anholt <eric@anholt.net>
Tue, 17 Oct 2017 17:41:55 +0000 (10:41 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 20 Oct 2017 23:26:46 +0000 (16:26 -0700)
commit5a0d3e1129b778fd03bf1b2ad44288603283f4ec
treee00b71d9ae57d54d694b2abaedea9ae5ecce4299
parentd9ce4ac990090b3fa940a662655b61359f296be0
nir: Print the components referenced for split or packed shader in/outs.

Having 4 variables all called "gl_in_TexCoord0@n" isn't very informative,
much better to see:

decl_var shader_in INTERP_MODE_NONE float gl_in_TexCoord0 (VARYING_SLOT_VAR0.x, 1, 0)
decl_var shader_in INTERP_MODE_NONE float gl_in_TexCoord0@0 (VARYING_SLOT_VAR0.y, 1, 0)
decl_var shader_in INTERP_MODE_NONE float gl_in_TexCoord0@1 (VARYING_SLOT_VAR0.z, 1, 0)
decl_var shader_in INTERP_MODE_NONE float gl_in_TexCoord0@2 (VARYING_SLOT_VAR0.w, 1, 0)

v2: Handle arrays and structs better (by Timothy)

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/nir/nir_print.c