From: Antia Puentes Date: Tue, 14 Apr 2015 10:04:24 +0000 (+0200) Subject: i965/nir/vec4: Derivatives are not allowed in VS X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dae6025e8efdfb759458a3243c8cd1588f485135;p=mesa.git i965/nir/vec4: Derivatives are not allowed in VS Reviewed-by: Jason Ekstrand --- diff --git a/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp b/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp index 584ea5b2299..6ae387a8852 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp @@ -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"); }