Discussion:
Recent world+kernel has broken Linux 3D apps?
(too old to reply)
Johannes Lundberg
2018-02-20 11:39:45 UTC
Permalink
Before rebuilding world my system was running Linux games fine with a
couple of months old world/kernel and drm-next-kmod.

Since updating world+kernel last week all Linux 3D apps fail (native
binaries like glxgears and supertuxkart works fine).

linux-c6/c7, intel/modesetting, does no difference
This is on Dell Intel Broadwell laptop.

Doom 3 fail like this:

----- R_ReloadARBPrograms -----
glprogs/test.vfpsignal caught: Segmentation fault
si_code 1
Trying to exit gracefully..


And glxgears (in /compat/linux/usr/bin/)

***@jd2:~ % /compat/linux/usr/bin/glxgears
Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be
broken.
Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be
broken.
Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be
broken.
Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be
broken.
Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be
broken.
libdrm aub dumping is deprecated.

Use intel_aubdump from intel-gpu-tools instead. Install intel-gpu-tools,
then run (for example)

$ intel_aubdump --output=trace.aub glxgears -geometry 500x500

See the intel_aubdump man page for more details.
bo_create: buf 1 (swizzle test) 32768b
bo_unreference final: 1 (swizzle test)
libGL: Can't open configuration file /home/johannes/.drirc: No such file or
directory.
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
bo_create: buf 1 (transform feedback offsets) 16b
bo_create: buf 2 (xfb primitive counts) 4096b
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn
compression/decompression unavailable
libGL: Can't open configuration file /home/johannes/.drirc: No such file or
directory.
bo_create: buf 3 (batchbuffer) 32768b
drm_intel_gem_bo_purge_vma_cache: cached=0, open=1, limit=-1
bo_map: 3 (batchbuffer), map_count=1
bo_map: 3 (batchbuffer) -> 0x1000
bo_create: buf 4 (pipe_control workaround) 4096b
bo_create: buf 5 (program cache) 4096b
drm_intel_gem_bo_purge_vma_cache: cached=0, open=2, limit=-1
bo_map_gtt: mmap 5 (program cache), map_count=1
intel_bufmgr_gem.c:1461: Error mapping buffer 5 (program cache): Invalid
argument .
drm_intel_gem_bo_purge_vma_cache: cached=0, open=1, limit=-1
bo_create: buf 6 (shader time) 393216b
bo_create: buf 7 (bufferobj) 65536b
enter intel_update_renderbuffers, drawable 0x614b80
enter intel_update_dri2_buffers, drawable 0x614b80
attaching buffer 3, at 1, cpp 4, pitch 1536
bo_create_from_handle: 3 (dri2 back buffer)
intel_miptree_create_layout target GL_TEXTURE_2D format
MESA_FORMAT_B8G8R8X8_UNORM level 0..0 slices 1 <-- 0x778210
intel_miptree_set_level_info level 0, depth 1, offset 0,0
intel_miptree_set_total_width_height: 300x300x4
intel_alloc_private_renderbuffer_storage: GL_DEPTH_COMPONENT:
MESA_FORMAT_Z24_UNORM_X8_UINT (300x300)
intel_miptree_create_layout target GL_TEXTURE_2D format
MESA_FORMAT_Z24_UNORM_X8_UINT level 0..0 slices 1 <-- 0x778440
intel_miptree_set_level_info level 0, depth 1, offset 0,0
intel_miptree_set_total_width_height: 300x300x4
bo_create: buf 9 (miptree) 409600b
bo_create: buf 10 (hiz) 98304b
mt 0x778440 level 0: HiZ enabled
intel_alloc_private_renderbuffer_storage: GL_STENCIL_INDEX:
MESA_FORMAT_S_UINT8 (300x300)
intel_miptree_create_layout target GL_TEXTURE_2D format MESA_FORMAT_S_UINT8
level 0..0 slices 1 <-- 0x778890
intel_miptree_set_level_info level 0, depth 1, offset 0,0
intel_miptree_set_total_width_height: 300x304x1
bo_create: buf 11 (miptree) 102400b
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
bo_create: buf 12 (bufferobj) 32768b
drm_intel_gem_bo_purge_vma_cache: cached=0, open=2, limit=-1
bo_map_gtt: mmap 12 (bufferobj), map_count=1
intel_bufmgr_gem.c:1461: Error mapping buffer 12 (bufferobj): Invalid
argument .
drm_intel_gem_bo_purge_vma_cache: cached=0, open=1, limit=-1


Segmentation fault (core dumped)
Hans Petter Selasky
2018-02-20 12:57:44 UTC
Permalink
Post by Johannes Lundberg
Before rebuilding world my system was running Linux games fine with a
couple of months old world/kernel and drm-next-kmod.
Since updating world+kernel last week all Linux 3D apps fail (native
binaries like glxgears and supertuxkart works fine).
linux-c6/c7, intel/modesetting, does no difference
This is on Dell Intel Broadwell laptop.
----- R_ReloadARBPrograms -----
glprogs/test.vfpsignal caught: Segmentation fault
si_code 1
Trying to exit gracefully..
And glxgears (in /compat/linux/usr/bin/)
Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be
broken.
Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be
broken.
Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be
broken.
Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be
broken.
Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be
broken.
libdrm aub dumping is deprecated.
Use intel_aubdump from intel-gpu-tools instead. Install intel-gpu-tools,
then run (for example)
$ intel_aubdump --output=trace.aub glxgears -geometry 500x500
See the intel_aubdump man page for more details.
bo_create: buf 1 (swizzle test) 32768b
bo_unreference final: 1 (swizzle test)
libGL: Can't open configuration file /home/johannes/.drirc: No such file or
directory.
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
bo_create: buf 1 (transform feedback offsets) 16b
bo_create: buf 2 (xfb primitive counts) 4096b
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn
compression/decompression unavailable
libGL: Can't open configuration file /home/johannes/.drirc: No such file or
directory.
bo_create: buf 3 (batchbuffer) 32768b
drm_intel_gem_bo_purge_vma_cache: cached=0, open=1, limit=-1
bo_map: 3 (batchbuffer), map_count=1
bo_map: 3 (batchbuffer) -> 0x1000
bo_create: buf 4 (pipe_control workaround) 4096b
bo_create: buf 5 (program cache) 4096b
drm_intel_gem_bo_purge_vma_cache: cached=0, open=2, limit=-1
bo_map_gtt: mmap 5 (program cache), map_count=1
intel_bufmgr_gem.c:1461: Error mapping buffer 5 (program cache): Invalid
argument .
drm_intel_gem_bo_purge_vma_cache: cached=0, open=1, limit=-1
bo_create: buf 6 (shader time) 393216b
bo_create: buf 7 (bufferobj) 65536b
enter intel_update_renderbuffers, drawable 0x614b80
enter intel_update_dri2_buffers, drawable 0x614b80
attaching buffer 3, at 1, cpp 4, pitch 1536
bo_create_from_handle: 3 (dri2 back buffer)
intel_miptree_create_layout target GL_TEXTURE_2D format
MESA_FORMAT_B8G8R8X8_UNORM level 0..0 slices 1 <-- 0x778210
intel_miptree_set_level_info level 0, depth 1, offset 0,0
intel_miptree_set_total_width_height: 300x300x4
MESA_FORMAT_Z24_UNORM_X8_UINT (300x300)
intel_miptree_create_layout target GL_TEXTURE_2D format
MESA_FORMAT_Z24_UNORM_X8_UINT level 0..0 slices 1 <-- 0x778440
intel_miptree_set_level_info level 0, depth 1, offset 0,0
intel_miptree_set_total_width_height: 300x300x4
bo_create: buf 9 (miptree) 409600b
bo_create: buf 10 (hiz) 98304b
mt 0x778440 level 0: HiZ enabled
MESA_FORMAT_S_UINT8 (300x300)
intel_miptree_create_layout target GL_TEXTURE_2D format MESA_FORMAT_S_UINT8
level 0..0 slices 1 <-- 0x778890
intel_miptree_set_level_info level 0, depth 1, offset 0,0
intel_miptree_set_total_width_height: 300x304x1
bo_create: buf 11 (miptree) 102400b
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
bo_create: buf 12 (bufferobj) 32768b
drm_intel_gem_bo_purge_vma_cache: cached=0, open=2, limit=-1
bo_map_gtt: mmap 12 (bufferobj), map_count=1
intel_bufmgr_gem.c:1461: Error mapping buffer 12 (bufferobj): Invalid
argument .
drm_intel_gem_bo_purge_vma_cache: cached=0, open=1, limit=-1
Segmentation fault (core dumped)
Can you compare the debug prints with working version?

--HPS
Johannes Lundberg
2018-02-20 13:03:58 UTC
Permalink
Post by Hans Petter Selasky
Post by Johannes Lundberg
Before rebuilding world my system was running Linux games fine with a
couple of months old world/kernel and drm-next-kmod.
Since updating world+kernel last week all Linux 3D apps fail (native
binaries like glxgears and supertuxkart works fine).
linux-c6/c7, intel/modesetting, does no difference
This is on Dell Intel Broadwell laptop.
----- R_ReloadARBPrograms -----
glprogs/test.vfpsignal caught: Segmentation fault
si_code 1
Trying to exit gracefully..
And glxgears (in /compat/linux/usr/bin/)
Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be
broken.
Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be
broken.
Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be
broken.
Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be
broken.
Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be
broken.
libdrm aub dumping is deprecated.
Use intel_aubdump from intel-gpu-tools instead. Install intel-gpu-tools,
then run (for example)
$ intel_aubdump --output=trace.aub glxgears -geometry 500x500
See the intel_aubdump man page for more details.
bo_create: buf 1 (swizzle test) 32768b
bo_unreference final: 1 (swizzle test)
libGL: Can't open configuration file /home/johannes/.drirc: No such file or
directory.
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
bo_create: buf 1 (transform feedback offsets) 16b
bo_create: buf 2 (xfb primitive counts) 4096b
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn
compression/decompression unavailable
libGL: Can't open configuration file /home/johannes/.drirc: No such file or
directory.
bo_create: buf 3 (batchbuffer) 32768b
drm_intel_gem_bo_purge_vma_cache: cached=0, open=1, limit=-1
bo_map: 3 (batchbuffer), map_count=1
bo_map: 3 (batchbuffer) -> 0x1000
bo_create: buf 4 (pipe_control workaround) 4096b
bo_create: buf 5 (program cache) 4096b
drm_intel_gem_bo_purge_vma_cache: cached=0, open=2, limit=-1
bo_map_gtt: mmap 5 (program cache), map_count=1
intel_bufmgr_gem.c:1461: Error mapping buffer 5 (program cache): Invalid
argument .
drm_intel_gem_bo_purge_vma_cache: cached=0, open=1, limit=-1
bo_create: buf 6 (shader time) 393216b
bo_create: buf 7 (bufferobj) 65536b
enter intel_update_renderbuffers, drawable 0x614b80
enter intel_update_dri2_buffers, drawable 0x614b80
attaching buffer 3, at 1, cpp 4, pitch 1536
bo_create_from_handle: 3 (dri2 back buffer)
intel_miptree_create_layout target GL_TEXTURE_2D format
MESA_FORMAT_B8G8R8X8_UNORM level 0..0 slices 1 <-- 0x778210
intel_miptree_set_level_info level 0, depth 1, offset 0,0
intel_miptree_set_total_width_height: 300x300x4
MESA_FORMAT_Z24_UNORM_X8_UINT (300x300)
intel_miptree_create_layout target GL_TEXTURE_2D format
MESA_FORMAT_Z24_UNORM_X8_UINT level 0..0 slices 1 <-- 0x778440
intel_miptree_set_level_info level 0, depth 1, offset 0,0
intel_miptree_set_total_width_height: 300x300x4
bo_create: buf 9 (miptree) 409600b
bo_create: buf 10 (hiz) 98304b
mt 0x778440 level 0: HiZ enabled
MESA_FORMAT_S_UINT8 (300x300)
intel_miptree_create_layout target GL_TEXTURE_2D format
MESA_FORMAT_S_UINT8
level 0..0 slices 1 <-- 0x778890
intel_miptree_set_level_info level 0, depth 1, offset 0,0
intel_miptree_set_total_width_height: 300x304x1
bo_create: buf 11 (miptree) 102400b
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
bo_create: buf 12 (bufferobj) 32768b
drm_intel_gem_bo_purge_vma_cache: cached=0, open=2, limit=-1
bo_map_gtt: mmap 12 (bufferobj), map_count=1
intel_bufmgr_gem.c:1461: Error mapping buffer 12 (bufferobj): Invalid
argument .
drm_intel_gem_bo_purge_vma_cache: cached=0, open=1, limit=-1
Segmentation fault (core dumped)
Can you compare the debug prints with working version?
I don't have a working system anymore.. Need some time to set one up...
If anyone has, try this

$ setenv INTEL_DEBUG all
$ setenv MESA_DEBUG 1
$ setenv LIBGL_DEBUG 1
$ /compat/linux/usr/bin/glxgears
Post by Hans Petter Selasky
--HPS
Hans Petter Selasky
2018-02-20 13:39:31 UTC
Permalink
Post by Johannes Lundberg
Post by Hans Petter Selasky
Post by Johannes Lundberg
Before rebuilding world my system was running Linux games fine with a
couple of months old world/kernel and drm-next-kmod.
Since updating world+kernel last week all Linux 3D apps fail (native
binaries like glxgears and supertuxkart works fine).
linux-c6/c7, intel/modesetting, does no difference
This is on Dell Intel Broadwell laptop.
----- R_ReloadARBPrograms -----
glprogs/test.vfpsignal caught: Segmentation fault
si_code 1
Trying to exit gracefully..
And glxgears (in /compat/linux/usr/bin/)
Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be
broken.
Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be
broken.
Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be
broken.
Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be
broken.
Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be
broken.
libdrm aub dumping is deprecated.
Use intel_aubdump from intel-gpu-tools instead. Install intel-gpu-tools,
then run (for example)
$ intel_aubdump --output=trace.aub glxgears -geometry 500x500
See the intel_aubdump man page for more details.
bo_create: buf 1 (swizzle test) 32768b
bo_unreference final: 1 (swizzle test)
libGL: Can't open configuration file /home/johannes/.drirc: No such file or
directory.
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
bo_create: buf 1 (transform feedback offsets) 16b
bo_create: buf 2 (xfb primitive counts) 4096b
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn
compression/decompression unavailable
libGL: Can't open configuration file /home/johannes/.drirc: No such file or
directory.
bo_create: buf 3 (batchbuffer) 32768b
drm_intel_gem_bo_purge_vma_cache: cached=0, open=1, limit=-1
bo_map: 3 (batchbuffer), map_count=1
bo_map: 3 (batchbuffer) -> 0x1000
bo_create: buf 4 (pipe_control workaround) 4096b
bo_create: buf 5 (program cache) 4096b
drm_intel_gem_bo_purge_vma_cache: cached=0, open=2, limit=-1
bo_map_gtt: mmap 5 (program cache), map_count=1
intel_bufmgr_gem.c:1461: Error mapping buffer 5 (program cache): Invalid
argument .
drm_intel_gem_bo_purge_vma_cache: cached=0, open=1, limit=-1
bo_create: buf 6 (shader time) 393216b
bo_create: buf 7 (bufferobj) 65536b
enter intel_update_renderbuffers, drawable 0x614b80
enter intel_update_dri2_buffers, drawable 0x614b80
attaching buffer 3, at 1, cpp 4, pitch 1536
bo_create_from_handle: 3 (dri2 back buffer)
intel_miptree_create_layout target GL_TEXTURE_2D format
MESA_FORMAT_B8G8R8X8_UNORM level 0..0 slices 1 <-- 0x778210
intel_miptree_set_level_info level 0, depth 1, offset 0,0
intel_miptree_set_total_width_height: 300x300x4
MESA_FORMAT_Z24_UNORM_X8_UINT (300x300)
intel_miptree_create_layout target GL_TEXTURE_2D format
MESA_FORMAT_Z24_UNORM_X8_UINT level 0..0 slices 1 <-- 0x778440
intel_miptree_set_level_info level 0, depth 1, offset 0,0
intel_miptree_set_total_width_height: 300x300x4
bo_create: buf 9 (miptree) 409600b
bo_create: buf 10 (hiz) 98304b
mt 0x778440 level 0: HiZ enabled
MESA_FORMAT_S_UINT8 (300x300)
intel_miptree_create_layout target GL_TEXTURE_2D format
MESA_FORMAT_S_UINT8
level 0..0 slices 1 <-- 0x778890
intel_miptree_set_level_info level 0, depth 1, offset 0,0
intel_miptree_set_total_width_height: 300x304x1
bo_create: buf 11 (miptree) 102400b
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
bo_create: buf 12 (bufferobj) 32768b
drm_intel_gem_bo_purge_vma_cache: cached=0, open=2, limit=-1
bo_map_gtt: mmap 12 (bufferobj), map_count=1
intel_bufmgr_gem.c:1461: Error mapping buffer 12 (bufferobj): Invalid
argument .
drm_intel_gem_bo_purge_vma_cache: cached=0, open=1, limit=-1
Segmentation fault (core dumped)
Can you compare the debug prints with working version?
I don't have a working system anymore.. Need some time to set one up...
If anyone has, try this
$ setenv INTEL_DEBUG all
$ setenv MESA_DEBUG 1
$ setenv LIBGL_DEBUG 1
$ /compat/linux/usr/bin/glxgears
Index: sys/compat/linux/linux_mmap.c
===================================================================
--- sys/compat/linux/linux_mmap.c (revision 329557)
+++ sys/compat/linux/linux_mmap.c (working copy)
@@ -129,7 +129,7 @@
error = fget(td, fd, cap_rights_init(&rights, CAP_MMAP), &fp);
if (error != 0)
return (error);
- if (fp->f_type != DTYPE_VNODE) {
+ if (fp->f_type != DTYPE_VNODE && fp->f_type != DTYPE_DEV) {
fdrop(fp, td);
return (EINVAL);
}
--HPS
Johannes Lundberg
2018-02-20 13:47:55 UTC
Permalink
Post by Johannes Lundberg
Post by Johannes Lundberg
Post by Johannes Lundberg
Before rebuilding world my system was running Linux games fine with a
Post by Johannes Lundberg
couple of months old world/kernel and drm-next-kmod.
Since updating world+kernel last week all Linux 3D apps fail (native
binaries like glxgears and supertuxkart works fine).
linux-c6/c7, intel/modesetting, does no difference
This is on Dell Intel Broadwell laptop.
----- R_ReloadARBPrograms -----
glprogs/test.vfpsignal caught: Segmentation fault
si_code 1
Trying to exit gracefully..
And glxgears (in /compat/linux/usr/bin/)
Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be
broken.
Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be
broken.
Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be
broken.
Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be
broken.
Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be
broken.
libdrm aub dumping is deprecated.
Use intel_aubdump from intel-gpu-tools instead. Install
intel-gpu-tools,
then run (for example)
$ intel_aubdump --output=trace.aub glxgears -geometry 500x500
See the intel_aubdump man page for more details.
bo_create: buf 1 (swizzle test) 32768b
bo_unreference final: 1 (swizzle test)
libGL: Can't open configuration file /home/johannes/.drirc: No such file or
directory.
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
bo_create: buf 1 (transform feedback offsets) 16b
bo_create: buf 2 (xfb primitive counts) 4096b
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
intelNewTextureObject
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn
compression/decompression unavailable
libGL: Can't open configuration file /home/johannes/.drirc: No such file or
directory.
bo_create: buf 3 (batchbuffer) 32768b
drm_intel_gem_bo_purge_vma_cache: cached=0, open=1, limit=-1
bo_map: 3 (batchbuffer), map_count=1
bo_map: 3 (batchbuffer) -> 0x1000
bo_create: buf 4 (pipe_control workaround) 4096b
bo_create: buf 5 (program cache) 4096b
drm_intel_gem_bo_purge_vma_cache: cached=0, open=2, limit=-1
bo_map_gtt: mmap 5 (program cache), map_count=1
intel_bufmgr_gem.c:1461: Error mapping buffer 5 (program cache): Invalid
argument .
drm_intel_gem_bo_purge_vma_cache: cached=0, open=1, limit=-1
bo_create: buf 6 (shader time) 393216b
bo_create: buf 7 (bufferobj) 65536b
enter intel_update_renderbuffers, drawable 0x614b80
enter intel_update_dri2_buffers, drawable 0x614b80
attaching buffer 3, at 1, cpp 4, pitch 1536
bo_create_from_handle: 3 (dri2 back buffer)
intel_miptree_create_layout target GL_TEXTURE_2D format
MESA_FORMAT_B8G8R8X8_UNORM level 0..0 slices 1 <-- 0x778210
intel_miptree_set_level_info level 0, depth 1, offset 0,0
intel_miptree_set_total_width_height: 300x300x4
MESA_FORMAT_Z24_UNORM_X8_UINT (300x300)
intel_miptree_create_layout target GL_TEXTURE_2D format
MESA_FORMAT_Z24_UNORM_X8_UINT level 0..0 slices 1 <-- 0x778440
intel_miptree_set_level_info level 0, depth 1, offset 0,0
intel_miptree_set_total_width_height: 300x300x4
bo_create: buf 9 (miptree) 409600b
bo_create: buf 10 (hiz) 98304b
mt 0x778440 level 0: HiZ enabled
MESA_FORMAT_S_UINT8 (300x300)
intel_miptree_create_layout target GL_TEXTURE_2D format
MESA_FORMAT_S_UINT8
level 0..0 slices 1 <-- 0x778890
intel_miptree_set_level_info level 0, depth 1, offset 0,0
intel_miptree_set_total_width_height: 300x304x1
bo_create: buf 11 (miptree) 102400b
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
bo_create: buf 12 (bufferobj) 32768b
drm_intel_gem_bo_purge_vma_cache: cached=0, open=2, limit=-1
bo_map_gtt: mmap 12 (bufferobj), map_count=1
intel_bufmgr_gem.c:1461: Error mapping buffer 12 (bufferobj): Invalid
argument .
drm_intel_gem_bo_purge_vma_cache: cached=0, open=1, limit=-1
Segmentation fault (core dumped)
Can you compare the debug prints with working version?
I don't have a working system anymore.. Need some time to set one up...
If anyone has, try this
$ setenv INTEL_DEBUG all
$ setenv MESA_DEBUG 1
$ setenv LIBGL_DEBUG 1
$ /compat/linux/usr/bin/glxgears
Index: sys/compat/linux/linux_mmap.c
Post by Johannes Lundberg
===================================================================
--- sys/compat/linux/linux_mmap.c (revision 329557)
+++ sys/compat/linux/linux_mmap.c (working copy)
@@ -129,7 +129,7 @@
error = fget(td, fd, cap_rights_init(&rights, CAP_MMAP), &fp);
if (error != 0)
return (error);
- if (fp->f_type != DTYPE_VNODE) {
+ if (fp->f_type != DTYPE_VNODE && fp->f_type != DTYPE_DEV)
{
fdrop(fp, td);
return (EINVAL);
}
And just like magic it works again <3
Post by Johannes Lundberg
--HPS
Loading...