<br>with export EGL_PLATFORM=drm, I ran egl/demo2 in ctr+alt+f1 terminal other than in Xwindow,<br><br>struct pipe_screen *<br>i915_screen_create(struct i915_winsys *iws)<br>{<br> struct i915_screen *is = CALLOC_STRUCT(i915_screen);<br>
<br> if (!is)<br> return NULL;<br><br> switch (iws->pci_id) {<br> case PCI_CHIP_I915_G:<br> case PCI_CHIP_I915_GM:<br> case 0x0046: -----> added it <br> is->is_i945 = FALSE;<br>
break;<br>It doesn't work surely, <br>[ 274.617475] [drm:i915_hangcheck_elapsed] *ERROR* Hangcheck timer elapsed... GPU hung<br><br><br>In x window when i was running it:<br><br>projects/demos/progs/egl$ ./a.out <br>
<br>EGL version = 1.4<br>EGL_VENDOR = Mesa Project<br>Got 3 EGL configs:<br> 1: Red Size = 8 Depth Size = 0<br> 2: Red Size = 8 Depth Size = 24<br> 3: Red Size = 8 Depth Size = 24<br>Mesa: Mesa 7.9 DEBUG build Nov 4 2010 12:33:09<br>
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn compression/decompression unavailable<br>Found 1 screens<br> Screen 0 handle: 1<br>Redraw event<br>sleep(1)<br>Redraw event<br>......<br><br>It is nothing, but when I restarted my laptop, xorg havn't recognize my VGA and videoCard... it have been running on low resolution, I don't know where is xorg config at as there isn't /etc/xorg.conf, or maybe i have to write one /etc/xorg.conf , dpkg-reconfig xorg-xserver do nothing for me. <br>
<br>Thanks,<br>Arthur<br>