Support Gen6 WHILE instruction

This commit is contained in:
Homer Hsing 2012-09-28 14:05:51 +08:00 committed by Damien Lespiau
parent 2ad18c1c97
commit e8cb195c6d

View File

@ -545,7 +545,10 @@ loopinstruction: predicate WHILE execsize relativelocation instoptions
set_instruction_src1(&$$, &$4);
$$.first_reloc_target = $4.reloc_target;
$$.first_reloc_offset = $4.imm32;
} else if (gen_level == 7) { // TODO: Gen6 also OK?
} else if (gen_level >= 6) {
/* Gen6 spec:
dest must have the same element size as src0.
dest horizontal stride must be 1. */
memset(&$$, 0, sizeof($$));
set_instruction_predicate(&$$, &$1);
$$.header.opcode = $2;