[Mesa-dev] [PATCH 09/15] i965/vec4: add component packing for gs

Timothy Arceri timothy.arceri at collabora.com
Tue Jul 19 06:33:21 UTC 2016


Reviewed-by: Edward O'Callaghan <funfunctor at folklore1984.net>
---
 src/mesa/drivers/dri/i965/brw_vec4_gs_nir.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/brw_vec4_gs_nir.cpp b/src/mesa/drivers/dri/i965/brw_vec4_gs_nir.cpp
index 9ebfb27..16d2410 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_gs_nir.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_gs_nir.cpp
@@ -72,6 +72,8 @@ vec4_gs_visitor::nir_emit_intrinsic(nir_intrinsic_instr *instr)
       src = src_reg(ATTR, BRW_VARYING_SLOT_COUNT * vertex->u32[0] +
                           instr->const_index[0] + offset->u32[0],
                     type);
+      src.swizzle = BRW_SWZ_COMP_INPUT(nir_intrinsic_component(instr));
+
       /* gl_PointSize is passed in the .w component of the VUE header */
       if (instr->const_index[0] == VARYING_SLOT_PSIZ)
          src.swizzle = BRW_SWIZZLE_WWWW;
-- 
2.7.4



More information about the mesa-dev mailing list