[Mesa-dev] [PATCH 03/10] i965/vs: Refactor min/max handling to share code.
Eric Anholt
eric at anholt.net
Fri Oct 26 15:15:40 PDT 2012
Kenneth Graunke <kenneth at whitecape.org> writes:
> void
> +vec4_visitor::emit_minmax(uint32_t conditionalmod, dst_reg dst,
> + src_reg src0, src_reg src1)
> +{
> + vec4_instruction *inst;
> +
> + if (intel->gen >= 6) {
> + inst = emit(BRW_OPCODE_SEL, dst, src0, src1);
> + inst->conditional_mod = conditionalmod;
> + } else {
> + emit(CMP(dst, src0, src1, BRW_CONDITIONAL_G));
s/BRW_CONDITIONAL_G/conditionalmod/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20121026/40df57a6/attachment.pgp>
More information about the mesa-dev
mailing list