ilo: map SO registers at shader compile time 08/7108/1
authorChia-I Wu <olvaffe@gmail.com>
Fri, 21 Jun 2013 06:22:09 +0000 (14:22 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Tue, 25 Jun 2013 05:18:08 +0000 (13:18 +0800)
commit91cf6c1e92eab5e263f46ac38edc07d7bdbd10b3
tree8f64f22968e756ee05d6b51103ce0eeb797e12d3
parent68522bf36ce13f7be7aa0dbd9345f287053ff5c2
ilo: map SO registers at shader compile time

The unmodified pipe_stream_output_info describes its outputs as if they are in
TGSI_FILE_OUTPUT.  Remap the register indices to where they appear in the VUE.

TGSI_SEMANTIC_PSIZE needs a little care because it is at the W channel.
src/gallium/drivers/ilo/ilo_3d_pipeline_gen7.c
src/gallium/drivers/ilo/ilo_gpe_gen7.c
src/gallium/drivers/ilo/ilo_gpe_gen7.h
src/gallium/drivers/ilo/ilo_shader.c
src/gallium/drivers/ilo/ilo_shader.h
src/gallium/drivers/ilo/shader/ilo_shader_internal.h