Lines Matching refs:depth
2321 /* Following code is for depth */
2792 /* replace the depth for depth testing with the result */
2882 /* we must replace the depth by r5.g == 0 ? 1.0f : r5.r/r5.g.
2893 /* replace the depth for depth testing with the result */
3740 struct ureg_dst fog_factor, depth;
3748 depth = tx_scratch_scalar(tx);
3750 ureg_RCP(ureg, depth, ureg_scalar(nine_get_position_input(tx), TGSI_SWIZZLE_W));
3751 ureg_MUL(ureg, depth, ureg_src(depth), ureg_scalar(nine_get_position_input(tx), TGSI_SWIZZLE_Z));
3761 ureg_ADD(ureg, fog_factor, fog_end, ureg_negate(ureg_src(depth)));
3765 ureg_MUL(ureg, fog_factor, ureg_src(depth), fog_density);
3770 ureg_MUL(ureg, fog_factor, ureg_src(depth), fog_density);