i965/vec4: Assert that fine/coarse derivative ops don't appear
authorChris Forbes <chrisf@ijw.co.nz>
Thu, 14 Aug 2014 08:38:33 +0000 (20:38 +1200)
committerChris Forbes <chrisf@ijw.co.nz>
Fri, 15 Aug 2014 06:04:03 +0000 (18:04 +1200)
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp

index ce64b301eeb221585a0d7ad47e6f5dab596cbc32..b17ef34f4b8416298fe3b2263bfb56cc60cc7dde 100644 (file)
@@ -1350,7 +1350,11 @@ vec4_visitor::visit(ir_expression *ir)
       break;
 
    case ir_unop_dFdx:
+   case ir_unop_dFdx_coarse:
+   case ir_unop_dFdx_fine:
    case ir_unop_dFdy:
+   case ir_unop_dFdy_coarse:
+   case ir_unop_dFdy_fine:
       unreachable("derivatives not valid in vertex shader");
 
    case ir_unop_bitfield_reverse: