[CFT] Mesa 18.2.0 update (mesa-libs, mesa-dri, libosmesa, clover)

Jan Beich jbeich at FreeBSD.org
Fri Sep 14 20:13:04 UTC 2018


Samy Mahmoudi <samy.mahmoudi at gmail.com> writes:

> On 11.1, Intel GPU, sandybridge, sna:
>
> • glxgears works fine.
> • mpv: vaapi-egl failed, vaapi-copy worked (see attached output).

Intel doesn't use VAAPI from Mesa but EGL interop failing is concerning.

> [vo/gpu/vaapi-egl] vaAcquireSurfaceHandle() failed (invalid VASurfaceID)
> [vo/gpu/vaapi-egl] vaAcquireBufferHandle() failed (invalid VABufferID)

I can't reproduce.

Did mpv --hwdec=vaapi work fine with Mesa 18.1.*? Can you show vainfo
(from libva-utils) output? Can you try -vo vaapi just in case?

> • MOZ_ACCELERATED=1 MOZ_WEBRENDER=1 firefox: several glitches that make
> firefox unusable (see attached output and screenshot)
[...]
> webrender::display_list_flattener: Unknown pipeline used for iframe IframeDisplayItem { clip_id: Clip(6, PipelineId(1, 3)), pipeline_id: PipelineId(9, 7) }

Does MOZ_ACCELERATED=1 alone work? Can you check WebGL2 in about:support?

(screenshot got stripped by mailman, the original mail also didn't reach me)

> • vulkaninfo: initialization error (see attached output)
> • vkquake: "Installed Vulkan doesn't implement the VK_KHR_surface
> extension" (see attached output)
> • rpcs3:
>    • vulkan renderer does not appear in the list of the section to

drm-legacy-kmod or in-base DRM bits in FreeBSD base don't support Vulkan.
drm-{stable,next,devel}-kmod do support Vulkan on AMD and Intel. On Intel
anything older than Haswell is unknown and according to Wikipedia there's no
Vulkan support on SandyBridge at all. Besides, i915kms.ko doesn't support
userptr (at least on drm-stable-kmod atm) outside of root[1]. Even after
applying ANV workaround[2] only few apps work: vulkaninfo, ppsspp but not
vkquake, rpcs3, mpv --gpu-api=vulkan.

[1] https://github.com/FreeBSDDesktop/DEPRECATED-freebsd-base-graphics/issues/132
[2] https://bugs.freebsd.org/bugzilla/attachment.cgi?id=187401

> configure GPU
>    • On PPU compiling a game: F {rsx::thread} N2gl4glsl21compilation_exceptionE
> thrown: compilation failed: '0:1(10): error: GLSL 4.20 is not supported.
> Supported versions are: 1.10, 1.20, 1.30, 1.40, 1.50, 3.30, 1.00 ES, and
> 3.00 ES' I also tried to change back sna to uxa but it does not seem to
> have any effect.

RPCS3 requires OpenGL 4.3+ support but as SandyBridge is 6th generation
of Intel iGPU you're limited to OpenGL 3.3. Unfortunately, the port cannot
run under software rendering as llvmpipe is also limited to OpenGL 3.3.

/* From src/mesa/drivers/dri/i965/intel_screen.c */
static void
set_max_gl_versions(struct intel_screen *screen)
{
   __DRIscreen *dri_screen = screen->driScrnPriv;
   const bool has_astc = screen->devinfo.gen >= 9;

   switch (screen->devinfo.gen) {
[...]
   case 6:
      dri_screen->max_gl_core_version = 33;
      dri_screen->max_gl_compat_version = 30;
      dri_screen->max_gl_es1_version = 11;
      dri_screen->max_gl_es2_version = 30;
      break;
[...]
}


More information about the freebsd-x11 mailing list