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

2018-03-21 Thread Kenneth Graunke
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

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

2018-03-20 Thread Lionel Landwerlin
On 20/03/18 00:08, Kenneth Graunke wrote: On Wednesday, March 14, 2018 10:19:11 AM PDT Lionel Landwerlin wrote: There are a couple of ways we can get the fusing information from the kernel : - Through DRM_I915_GETPARAM with the SLICE_MASK/SUBSLICE_MASK parameters - Through the new

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

2018-03-19 Thread Kenneth Graunke
On Wednesday, March 14, 2018 10:19:11 AM PDT Lionel Landwerlin wrote: > There are a couple of ways we can get the fusing information from the > kernel : > > - Through DRM_I915_GETPARAM with the SLICE_MASK/SUBSLICE_MASK > parameters > > - Through the new DRM_IOCTL_I915_QUERY by requesting

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

2018-03-14 Thread Lionel Landwerlin
There are a couple of ways we can get the fusing information from the kernel : - Through DRM_I915_GETPARAM with the SLICE_MASK/SUBSLICE_MASK parameters - Through the new DRM_IOCTL_I915_QUERY by requesting the DRM_I915_QUERY_TOPOLOGY_INFO The second method is more accurate and also