summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2014-10-15 16:57:10 -0700
committerJason Ekstrand <[email protected]>2015-01-15 07:18:59 -0800
commitd40b5ca5c50796c168aba0e0e3dd4a0f695a9e3b (patch)
tree989a3c46f749faa78b1287f36fb5056f5c8ccc00 /src
parent8c75a7ce590e0802cea7d64c28e22bee7c013e16 (diff)
nir/glsl: Add support for coarse and fine derivatives
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/glsl/nir/glsl_to_nir.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/glsl/nir/glsl_to_nir.cpp b/src/glsl/nir/glsl_to_nir.cpp
index 7155a9df08a..40cb2448cf8 100644
--- a/src/glsl/nir/glsl_to_nir.cpp
+++ b/src/glsl/nir/glsl_to_nir.cpp
@@ -1078,8 +1078,12 @@ nir_visitor::visit(ir_expression *ir)
case ir_unop_cos_reduced:
emit(nir_op_fcos_reduced, dest_size, srcs);
break;
- case ir_unop_dFdx: emit(nir_op_fddx, dest_size, srcs); break;
- case ir_unop_dFdy: emit(nir_op_fddy, dest_size, srcs); break;
+ case ir_unop_dFdx: emit(nir_op_fddx, dest_size, srcs); break;
+ case ir_unop_dFdy: emit(nir_op_fddy, dest_size, srcs); break;
+ case ir_unop_dFdx_fine: emit(nir_op_fddx_fine, dest_size, srcs); break;
+ case ir_unop_dFdy_fine: emit(nir_op_fddy_fine, dest_size, srcs); break;
+ case ir_unop_dFdx_coarse: emit(nir_op_fddx_coarse, dest_size, srcs); break;
+ case ir_unop_dFdy_coarse: emit(nir_op_fddy_coarse, dest_size, srcs); break;
case ir_unop_pack_snorm_2x16:
emit(nir_op_pack_snorm_2x16, dest_size, srcs);
break;