> 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 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev