Project

General

Profile

Actions

Bug #7635

closed

Error when using basic GL software

Added by Ben Franck about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Start date:
2016-12-01
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

I've tried it on a Dell Latitude E4300 (i965) and it seems to work fine at first glance.
I have my login screen, I can login and work as usual.
I tried some GL stuff and despite that it works, I have some errors on the terminal ouput.

$ glxinfo | more
[intel_init_bufmgr:1166] Error initializing buffer manager.
libGL error: failed to create dri screen
libGL error: failed to load driver: i965
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
GLX_ARB_create_context, GLX_ARB_create_context_profile,
[...]
GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group,
GLX_SGI_make_current_read
Extended renderer info (GLX_MESA_query_renderer):
Vendor: Mesa Project (0xffffffff)
Device: Software Rasterizer (0xffffffff)
[...]

$ glxgears
[intel_init_bufmgr:1166] Error initializing buffer manager.
libGL error: failed to create dri screen
libGL error: failed to load driver: i965
1535 frames in 5.0 seconds = 306.871 FPS

glxgear works despite the output errors.


Files

Xorg.0.log (20.2 KB) Xorg.0.log Xorg.0.log Ben Franck, 2016-12-01 09:42 PM
Actions #1

Updated by Ben Franck about 5 years ago

Actions #2

Updated by Gordon Ross about 5 years ago

  • Status changed from New to In Progress

This turns out to be an interesting bug. When a 32-bit program calls ioctl(fd, DRM_IOCTL_I915_GETPARAM, arg) the driver does a copyout of a 64-bit version of the getparam struct, smashing some stack in "glxinfo".
The _MULTI_DATAMODE support and/or these 32-bit ioctl variants needs some work.

Actions #3

Updated by Gordon Ross about 5 years ago

  • Status changed from In Progress to Closed
commit 53d74b3f1524f6717ab36e97d4a0d059eb759dd8
Author: Gordon Ross <gordon.w.ross@gmail.com>
Date:   Thu Dec 1 20:58:17 2016 -0500

    7635 Error when using basic GL software

23      5       usr/src/common/libdrm/patches/incl-drm-i915-drm-h.patch
6       3       usr/src/uts/common/drm/i915_drm.h
Actions

Also available in: Atom PDF