gallium: add support for stream in so info
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 15 Jun 2014 20:38:35 +0000 (16:38 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 1 Jul 2014 15:34:28 +0000 (11:34 -0400)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/drivers/trace/tr_dump_state.c
src/gallium/include/pipe/p_state.h
src/mesa/state_tracker/st_glsl_to_tgsi.cpp

index f57dda465a49ab9e2c54a6cb029c5ef1e2b57296..37074a70e248196f3d51f2e374ee3f494a079a0c 100644 (file)
@@ -292,6 +292,7 @@ void trace_dump_shader_state(const struct pipe_shader_state *state)
       trace_dump_member(uint, &state->stream_output.output[i], num_components);
       trace_dump_member(uint, &state->stream_output.output[i], output_buffer);
       trace_dump_member(uint, &state->stream_output.output[i], dst_offset);
+      trace_dump_member(uint, &state->stream_output.output[i], stream);
       trace_dump_struct_end();
       trace_dump_elem_end();
    }
index 72576041ece4f5b2158386fab53e93a14db8a0a5..6e6f88e6133d7b4c16b68271b0d725648c0f5881 100644 (file)
@@ -205,6 +205,7 @@ struct pipe_stream_output_info
       unsigned num_components:3;  /** 1 to 4 */
       unsigned output_buffer:3;   /**< 0 to PIPE_MAX_SO_BUFFERS */
       unsigned dst_offset:16;     /**< offset into the buffer in dwords */
+      unsigned stream:2;          /**< 0 to 3 */
    } output[PIPE_MAX_SO_OUTPUTS];
 };
 
index b7218eff15c552d6fbd3d05ce1e450781578f56f..a552bb4da0128f2bf2ec3cc00b06002415f469a3 100644 (file)
@@ -5524,6 +5524,7 @@ st_translate_stream_output_info(glsl_to_tgsi_visitor *glsl_to_tgsi,
       so->output[i].num_components = info->Outputs[i].NumComponents;
       so->output[i].output_buffer = info->Outputs[i].OutputBuffer;
       so->output[i].dst_offset = info->Outputs[i].DstOffset;
+      so->output[i].stream = 0; /* info->Outputs[i].StreamId */
    }
 
    for (i = 0; i < PIPE_MAX_SO_BUFFERS; i++) {