i965: Move GS_THREAD_END mlen calculations out of the generator.
[mesa.git] / src / mesa / drivers / dri / i965 / brw_vec4_generator.cpp
index c7546070bf9d051589445c762ac4e3df5c6a112b..50f96632f7ffda279eec9321b421953fa1b57d52 100644 (file)
@@ -505,7 +505,7 @@ vec4_generator::generate_gs_thread_end(vec4_instruction *inst)
                  inst->base_mrf, /* starting mrf reg nr */
                  src,
                  BRW_URB_WRITE_EOT | inst->urb_write_flags,
-                 devinfo->gen >= 8 ? 2 : 1,/* message len */
+                 inst->mlen,
                  0,              /* response len */
                  0,              /* urb destination offset */
                  BRW_URB_SWIZZLE_INTERLEAVE);