From: Timothy Arceri Date: Wed, 22 Jun 2016 23:37:03 +0000 (+1000) Subject: i965/vec4: add support for packing inputs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b427abba0c04214ba6184092eee73fc6377fbff9;p=mesa.git i965/vec4: add support for packing inputs Reviewed-by: Kenneth Graunke Reviewed-by: Edward O'Callaghan --- diff --git a/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp b/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp index 4f3cc3d3e3e..f786f5839a2 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp @@ -397,6 +397,8 @@ vec4_visitor::nir_emit_intrinsic(nir_intrinsic_instr *instr) src = src_reg(ATTR, instr->const_index[0] + const_offset->u32[0], glsl_type::uvec4_type); + /* Swizzle source based on component layout qualifier */ + src.swizzle = BRW_SWZ_COMP_INPUT(nir_intrinsic_component(instr)); dest = get_nir_dest(instr->dest, src.type); dest.writemask = brw_writemask_for_size(instr->num_components);