X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fauxiliary%2Fgallivm%2Flp_bld_quad.h;h=e41f80efe2d157a6f2627e4dd411dbba0a8cad40;hb=5ae31d7e1d3d51c7843571c63aa228f8ca9b879f;hp=b7992912927192d54f3337b0523d6d3440e119f5;hpb=1218430e1200a08cd64b6555d3fd1fd0274ad9e5;p=mesa.git diff --git a/src/gallium/auxiliary/gallivm/lp_bld_quad.h b/src/gallium/auxiliary/gallivm/lp_bld_quad.h index b7992912927..e41f80efe2d 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_quad.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_quad.h @@ -78,19 +78,24 @@ lp_build_ddy(struct lp_build_context *bld, /* - * Scalar derivatives. - * - * Same as getting the first value of above. + * Packed derivatives (one derivative for each direction per quad) */ - LLVMValueRef -lp_build_scalar_ddx(struct lp_build_context *bld, - LLVMValueRef a); - +lp_build_packed_ddx_ddy_twocoord(struct lp_build_context *bld, + LLVMValueRef a, LLVMValueRef b); LLVMValueRef -lp_build_scalar_ddy(struct lp_build_context *bld, - LLVMValueRef a); +lp_build_packed_ddx_ddy_onecoord(struct lp_build_context *bld, + LLVMValueRef a); +/* + * Twiddle from quad format to row format + */ +void +lp_bld_quad_twiddle(struct gallivm_state *gallivm, + struct lp_type lp_dst_type, + const LLVMValueRef* src, + unsigned src_count, + LLVMValueRef* dst); #endif /* LP_BLD_QUAD_H_ */