Results 1 to 10 of 15

Thread: I wanted to try the new vmwgfx stuff, but...

Hybrid View

  1. #1
    Join Date
    Jun 2010
    Location
    ฿ 16LDJ6Hrd1oN3nCoFL7BypHSEYL84ca1JR
    Posts
    968

    Default I wanted to try the new vmwgfx stuff, but...

    So today I wanted to see how the vmwgfx graphics stuff was doing. Naturally I compiled libdrm with the --enable-vmwgfx-experimental-api and mesa with the svga state tracker.
    Unfortunately with the stable xf86-video-vmwgfx only the fallback on the vmwgfx legacy driver works and that doesn't have any 3d...

    So I tried to compile xf86-video-vmwgfx-git...
    First thing I noticed that I need to do this:
    Code:
    --- a/vmwgfx/vmwgfx_driver.c
    +++ b/vmwgfx/vmwgfx_driver.c
    @@ -76,7 +76,7 @@ typedef uint16_t uint16;
     
     typedef int8_t int8;
     typedef uint8_t uint8;
    -#include "./src/svga_reg.h"
    +#include "../src/svga_reg.h"
     
     #define XA_VERSION_MINOR_REQUIRED 6
     #define DRM_VERSION_MAJOR_REQUIRED 2
    This code with the missing dot was commited on Jun 16... Has nobody compiled that driver with the X.org state tracker since June??

    But this would be too easy to fix, the makefile also needs to be broken!
    Code:
    make[1]: *** No rule to make target `../../xf86-video-vmware-git/saa/libsaa.la', needed by `libvmwgfx.la'.  Stop.
    So my question: Is vmwgfx to be supposed to be actually kind of usable or is this quest ultimatively useless at this time?

  2. #2
    Join Date
    Jun 2010
    Location
    ฿ 16LDJ6Hrd1oN3nCoFL7BypHSEYL84ca1JR
    Posts
    968

    Default

    Please disregard the first post.
    The build script I was using was not very good.

    So now I have a recent kernel, libdrm, mesa and xorg driver. But apparently my mesa git from today is not recent enaugh?
    Code:
    [   600.989] (II) vmware(0): Gallium3D XA version: 1.0.0.
    [   600.989] (WW) vmware(0): Expecting 1.6.x >= XA version < 2.0.0.
    So still, no 3D.

    Also, it again messed up the screen resolutions. Before I had set the maximum resolution to 1600x900 in order to be able to set my X to 1600x900, but now again I get quite a list of resolutions but not 1600x900...
    Code:
    Virtual1 connected 1440x900+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
       800x600        60.0 +   60.3  
       2560x1600      60.0  
       1920x1440      60.0  
       1856x1392      60.0  
       1792x1344      60.0  
       1920x1200      59.9  
       1600x1200      60.0  
       1680x1050      60.0  
       1400x1050      60.0  
       1280x1024      60.0  
       1440x900       59.9* 
       1280x960       60.0  
       1360x768       60.0  
       1280x800       59.8  
       1152x864       75.0  
       1280x768       59.9  
       1024x768       60.0  
       640x480        59.9
    Also, windows 7 on this laptop will drive me crazy: It is shutting down the hard drive all the time. And with all the time I mean, about every 15-30 seconds. Even though I told it to spin down after 999 minutes. The same hard disk will not spin down when told so by hdparm. How do this windows people put up with that that mess?

  3. #3
    Join Date
    Jun 2010
    Location
    ฿ 16LDJ6Hrd1oN3nCoFL7BypHSEYL84ca1JR
    Posts
    968

    Default

    Aaaand, after again my edit-time is over I today rebuilt mesa git and xf86-video-vmware git and it just works now.

    So it seems I just got in on a bad time.

    Code:
    OpenGL renderer string: Gallium 0.4 on SVGA3D; build: RELEASE;
    Code:
    $ glxgears
    11346 frames in 5.0 seconds = 2269.061 FPS
    12227 frames in 5.0 seconds = 2445.197 FPS

  4. #4
    Join Date
    Dec 2009
    Posts
    29

    Default

    I had similar issues. When I checked out their code, I had to edit the MAJOR and MINOR numbers for XA and xf86-video-vmware to actually get it to work.

    It doesn't help that there's no real information anywhere on how to compile it (and that you need the latest everything).

    But I also got it working. Seems to work fine here with Ubuntu.

    I'm hoping that by the next release of Ubuntu they enable it by default. At this point I'd consider it stable.

  5. #5
    Join Date
    Jun 2010
    Location
    ฿ 16LDJ6Hrd1oN3nCoFL7BypHSEYL84ca1JR
    Posts
    968

    Default

    Yesterday in mesa:
    Code:
    commit 27915708ed4519cc5606e81fb789e8427501f355
    Author: Brian Paul <brianp@vmware.com>
    Date:   Fri Jan 13 10:54:22 2012 -0700
    
        docs: new page describing how to build, install VMware SVGA3D guest driver
    
     docs/contents.html     |    1 +
     docs/vmware-guest.html |  185 ++++++++++++++++++++++++++++++++++++++++++++++++
     2 files changed, 186 insertions(+), 0 deletions(-)
     create mode 100644 docs/vmware-guest.html
    Also yesterday in xf86-video-vmware (I believe this was the commit that fixed the xa version number problem):
    Code:
    commit e6d03aceb1195de0b490f39024f34a33b1a8f6fc
    Author: Thomas Hellstrom <thellstrom@vmware.com>
    Date:   Thu Jan 12 14:00:41 2012 +0100
    
        vmwgfx: Adapt to new XA version number v2
        
        Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
        Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
    
     vmwgfx/vmwgfx_driver.c |   27 ++++++++++-----------------
     1 files changed, 10 insertions(+), 17 deletions(-)
    And with the new vmware driver even modelines work (didn't work with vmwlegacy):
    Code:
    xrandr --newmode "1600x900_60.00"  119.00  1600 1696 1864 2128  900 901 904 932  -HSync +Vsync
    xrandr --addmode Virtual1 1600x900_60.00
    xrandr --output Virtual1 --mode 1600x900_60.00
    xrandr -s 1600x900
    Yay.
    Last edited by ChrisXY; 01-14-2012 at 04:07 AM.

  6. #6
    Join Date
    Jan 2012
    Posts
    7

    Default

    I try to compile this on gentoo
    new page describing how to build, install VMware SVGA3D guest driver
    http://cgit.freedesktop.org/mesa/mes...89e8427501f355

    At this point:
    Code:
    cd $TOP/vmwgfx
    make
    I get the following error:
    Code:
    thunder vmwgfx # make
    make -C /lib/modules/3.1.6-gentoo/source  SUBDIRS=`/bin/pwd` DRMSRCDIR=`/bin/pwd` modules
    make[1]: Entering directory `/usr/src/linux-3.1.6-gentoo'
      CC [M]  /root/vmwgfx/vmwgfx_defio.o
    /root/vmwgfx/vmwgfx_defio.c: In function ‚vmw_fb_deferred_io_fsync‚:
    /root/vmwgfx/vmwgfx_defio.c:193:2: error: implicit declaration of function ‚cancel_rearming_delayed_work‚
    /root/vmwgfx/vmwgfx_defio.c: In function ‚fb_deferred_io_mmap‚:
    /root/vmwgfx/vmwgfx_defio.c:222:27: warning: assignment from incompatible pointer type
    make[2]: *** [/root/vmwgfx/vmwgfx_defio.o] Error 1
    make[1]: *** [_module_/root/vmwgfx] Error 2
    make[1]: Leaving directory `/usr/src/linux-3.1.6-gentoo'
    make: *** [modules] Error 2
    thunder vmwgfx #
    Do you notice the strange caracters "‚"? Do you have any clue what may be going on?

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •