i965/nir/vec4: Derivatives are not allowed in VS

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
This commit is contained in:
Antia Puentes 2015-04-14 12:04:24 +02:00 committed by Jason Ekstrand
parent 5e6f1c38a5
commit dae6025e8e
1 changed files with 8 additions and 0 deletions

View 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");
}