On Mon, Apr 9, 2018 at 10:51 AM, Bas Vermeulen <b...@daedalean.ai> wrote:
> I am working on a new version of this patch. I have one version which does > away with all the bitfields, and uses > functions to update the index. > Another approach would be to change the union to a struct, and use a > function to get the index. > Yet another approach would be to keep the contents of the union and the > index in one struct, and use a function to > (re)calculate the index. > > Which would you prefer? > I don't mind bitfields. They make the code nice and tiny. Shifts would decrease readability. Marek
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev