From: Samuel Iglesias Gonsalvez <sigles...@igalia.com> Signed-off-by: Samuel Iglesias Gonsalvez <sigles...@igalia.com> --- src/mesa/drivers/dri/i965/brw_vec4_generator.cpp | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_generator.cpp b/src/mesa/drivers/dri/i965/brw_vec4_generator.cpp index e3f9eea..e2a203a 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_generator.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_generator.cpp @@ -1092,6 +1092,7 @@ generate_code(struct brw_codegen *p, assert(inst->mlen <= BRW_MAX_MSG_LENGTH); unsigned pre_emit_nr_insn = p->nr_insn; + bool fix_exec_size = false; if (dst.width == BRW_WIDTH_4) { /* This happens in attribute fixups for "dual instanced" geometry @@ -1116,6 +1117,8 @@ generate_code(struct brw_codegen *p, if (src[i].file == BRW_GENERAL_REGISTER_FILE) src[i] = stride(src[i], 4, 4, 1); } + brw_set_default_exec_size(p, BRW_EXECUTE_4); + fix_exec_size = true; } switch (inst->opcode) { @@ -1545,6 +1548,9 @@ generate_code(struct brw_codegen *p, unreachable("Unsupported opcode"); } + if (fix_exec_size) + brw_set_default_exec_size(p, BRW_EXECUTE_8); + if (inst->opcode == VEC4_OPCODE_PACK_BYTES) { /* Handled dependency hints in the generator. */ -- 2.5.0 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev