From: Paul Berry Date: Tue, 27 Dec 2011 03:31:44 +0000 (-0800) Subject: gallium: Make use of gl_transform_feedback_info::ComponentOffset. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=367b83f890f6f7922bc8f9aa528ab50f55674e9e;p=mesa.git gallium: Make use of gl_transform_feedback_info::ComponentOffset. Reviewed-by: Marek Olšák Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index 500e662b820..9e61c656de3 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -5191,7 +5191,8 @@ st_translate_stream_output_info(struct glsl_to_tgsi_visitor *glsl_to_tgsi, so->output[i].register_index = outputMapping[info->Outputs[i].OutputRegister]; so->output[i].register_mask = - comps_to_mask[info->Outputs[i].NumComponents]; + comps_to_mask[info->Outputs[i].NumComponents] + << info->Outputs[i].ComponentOffset; so->output[i].output_buffer = info->Outputs[i].OutputBuffer; } so->num_outputs = info->NumOutputs;