[Mesa-dev] [PATCH 1/2] gallivm: allow negation of all integer types

Dave Airlie airlied at gmail.com
Thu May 2 18:07:44 PDT 2013


> Sorry to hear the hw doesn't support it, but this is supported by d3d10
> so it's quite likely some hw indeed supports it. There's always some
> things some hw can't do natively.

Well I was hoping before adding new things for sw driver to gallium we
should confirm if it
makes sense for hw.

> I'd be fine to just restrict it to some opcodes, e.g. exclude logic ops
> if that helps you. Note that tgsi (and d3d10 for that matter) also for
> instance don't have a integer SUB opcode, so the natural way for
> encoding that would of course just be with a ADD with negate modifier on
> second arg, and I bet your hw could do that one.

Nope, all r600 hw has SUB_INT. The negate bit is always specified to
only operate
on float instructions.

Dave.


More information about the mesa-dev mailing list