OSDN Git Service

i965 gen6+: Use 1-wide null operands for IF instructions
authorPaul Berry <stereotype441@gmail.com>
Mon, 5 Dec 2011 21:52:16 +0000 (13:52 -0800)
committerPaul Berry <stereotype441@gmail.com>
Tue, 20 Dec 2011 22:32:16 +0000 (14:32 -0800)
commitfd5d0c8b12a0e144aa8e95540c0da2161d8e089a
tree2b7a8be55f54318f6757f15ca729b8b757dff1a4
parent38b118d49ddbc8bd5d96cc0d23d681887fca045e
i965 gen6+: Use 1-wide null operands for IF instructions

The Sandy Bridge PRM, volume 4, part 2, section 5.3.10 ("5.3.10
Register Region Restrictions") contains the following restriction on
the execution size and operand width of instructions:

   "3. ExecSize must be equal to or greater than Width."

When emitting an IF instruction in single program flow mode on Gen6+,
we use an ExecSize of 1, therefore the Width of each operand must also
be 1.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_eu_emit.c