[Mesa-dev] [PATCH v2 5/8] intel: devinfo: add helper functions to fill fusing masks values

Kenneth Graunke kenneth at whitecape.org
Wed Mar 21 07:22:46 UTC 2018


On Tuesday, March 20, 2018 11:10:11 AM PDT Lionel Landwerlin wrote:
> On 20/03/18 00:08, Kenneth Graunke wrote:
> > On Wednesday, March 14, 2018 10:19:11 AM PDT Lionel Landwerlin wrote:
> >> +   devinfo->num_slices = __builtin_popcount(devinfo->slice_masks);
> > _mesa_bitcount() here and elsewhere.
> 
> Only issue with this is that it pulls in the headers from what I 
> consider to be the GL headers : src/mesa/main/imports.h

Hrm...yeah.  It's probably fine to use __builtin_popcount - it looks
like anv already does, and likely the only reason not to is for MSVC
or other compilers we don't build against.

--Ken
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180321/a1ef790a/attachment.sig>


More information about the mesa-dev mailing list