diff options
author | Antia Puentes <[email protected]> | 2015-04-14 12:04:24 +0200 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-08-03 09:40:48 -0700 |
commit | dae6025e8efdfb759458a3243c8cd1588f485135 (patch) | |
tree | 3c41be33fbfdc43b84e23da33ec639b2ff3cacc2 | |
parent | 5e6f1c38a591fa39cff1c32a2cfdda927145756a (diff) |
i965/nir/vec4: Derivatives are not allowed in VS
Reviewed-by: Jason Ekstrand <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4_nir.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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"); } |