On Thu, Jun 14, 2018 at 11:42 AM, Keith Packard <kei...@keithp.com> wrote:
> Jason Ekstrand <ja...@jlekstrand.net> writes: > > >> + if (instance->enabled_extensions.KHR_display) { > >> + master_fd = open(path, O_RDWR | O_CLOEXEC); > >> > > > > Is this supposed to be opening primary_path instead? > > Yes, and this section of code needs to occur before anv_init_wsi. > > I appear to have skipped testing this path on ANV and only tested it on > RADV -- RADV has the code in the right order. Thanks for catching this; > sorry I messed up and didn't test it. > > > This could just be > > > > if (anv_gem_get_param(master_fd, I915_PARAM_CHIPSET_ID) == 0) { > > close(master_fd); > > master_fd = -1; > > } > > > > No need to type out all that IOCTL stuff. > > Thanks, that's lots shorter (RADV doesn't appear to have a similar helper). > > Here's an amendment to the proposed patch which fixes the bug and > switches to the simpler detection method. > Looks good to me. With that, Reviewed-by: Jason Ekstrand <ja...@jlekstrand.net>
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev