[Mesa-dev] [PATCH] tgsi: document and fixup IF and BREAKC instrunctions

Zack Rusin zackr at vmware.com
Thu Apr 11 13:16:55 PDT 2013


> What about drivers without integer support? The IF instruction should have 2
> definitions: one for the drivers which support PIPE_SHADER_CAP_INTEGERS, and
> the other one for those which don't. Obviously, there is no way to change
> the behavior of the IF opcode if you only have floats.

I think in that case you simply do the best you can with what you have to replicate the correct behavior. So nothing should change for hardware that doesn't support bit-wise comparisons, it never correctly replicated the wanted TGSI behavior but it was good enough for the things that are working on it, where comparisons are used fairly judiciously because everyone was aware they were done on floats.

z


More information about the mesa-dev mailing list