From: Iago Toral Quiroga Date: Wed, 9 Jul 2014 13:32:57 +0000 (+0200) Subject: i965/gen6/gs: Add instruction URB flags to geometry shaders EOT message. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=621685ad4c747cc67e1b6c7ba95fa59774196a54;p=mesa.git i965/gen6/gs: Add instruction URB flags to geometry shaders EOT message. Gen6 seems to require that EOT messages include the complete flag too or else the GPU hangs. We add will this flag to the instruction when we emit the thread end opcode. Acked-by: Kenneth Graunke Reviewed-by: Jordan Justen --- diff --git a/src/mesa/drivers/dri/i965/brw_vec4_generator.cpp b/src/mesa/drivers/dri/i965/brw_vec4_generator.cpp index f98c472430c..ebc54916c12 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_generator.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_generator.cpp @@ -500,7 +500,7 @@ vec4_generator::generate_gs_thread_end(vec4_instruction *inst) brw_null_reg(), /* dest */ inst->base_mrf, /* starting mrf reg nr */ src, - BRW_URB_WRITE_EOT, + BRW_URB_WRITE_EOT | inst->urb_write_flags, brw->gen >= 8 ? 2 : 1,/* message len */ 0, /* response len */ 0, /* urb destination offset */