i965/nir/vec4: Derivatives are not allowed in VS
authorAntia Puentes <apuentes@igalia.com>
Tue, 14 Apr 2015 10:04:24 +0000 (12:04 +0200)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 3 Aug 2015 16:40:48 +0000 (09:40 -0700)
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_vec4_nir.cpp

index 584ea5b2299d851fc70acbaa8e85c884d39d761c..6ae387a88526309176a4a36ac75b66f24aef42bc 100644 (file)
@@ -861,6 +861,14 @@ vec4_visitor::nir_emit_alu(nir_alu_instr *instr)
       inst->saturate = instr->dest.saturate;
       break;
 
+   case nir_op_fddx:
+   case nir_op_fddx_coarse:
+   case nir_op_fddx_fine:
+   case nir_op_fddy:
+   case nir_op_fddy_coarse:
+   case nir_op_fddy_fine:
+      unreachable("derivatives are not valid in vertex shaders");
+
    default:
       unreachable("Unimplemented ALU operation");
    }