i965/vec4: Add a brw->gen >= 6 assertion in three-source emitters.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 24 Feb 2014 00:08:56 +0000 (16:08 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 26 Feb 2014 10:16:34 +0000 (02:16 -0800)
commitffde483f3c4da547f2823f72554cea1d1ff25e48
tree063d346133e1022e12cbdf531a08692cf148d6ae
parentbb9c8071eaea276658a631c47c0bedd371a7ddfc
i965/vec4: Add a brw->gen >= 6 assertion in three-source emitters.

Three source instructions didn't exist until Gen6.  vec4_generator has
assertions to catch this, but catching it in the visitor provides a
nicer backtrace.

Cc: "10.1" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Acked-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp