From: Chris Forbes Date: Thu, 14 Aug 2014 08:38:33 +0000 (+1200) Subject: i965/vec4: Assert that fine/coarse derivative ops don't appear X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=587e6e78984cd7490ac68b83d0b751bf23256595;p=mesa.git i965/vec4: Assert that fine/coarse derivative ops don't appear Signed-off-by: Chris Forbes Reviewed-by: Matt Turner --- diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp index ce64b301eeb..b17ef34f4b8 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp @@ -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: