Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Using software rendering

  1. #1
    Join Date
    Feb 2013
    Posts
    3

    Default Using software rendering

    Hi there.
    I'm bloody desperate newbie in graphic programming and I need help. My graphic card support only OpenGL 2.1 and GLSL 1.2 and I need to use some functionality of newer GLSL, so I wanted to use mesa and its software rendering. I tried to set environment variables, change packages, but whatever I did, it throw error

    GLSL 1.30 is not supported. Supported versions are: 1.00 ES, 1.10, and 1.20

    Probably it's some my idiocy, but it's for my university project, deadline in coming and as I said, I'm desperate now
    I use Debian wheezy and its official mesa packages.
    Thanks for any help...

  2. #2
    Join Date
    Aug 2007
    Posts
    6,645

    Default

    Simple Nvidia GeForce G210 cards only cost around 20 + shipping, whats the big deal to buy a new one? What's your current card?

  3. #3
    Join Date
    Feb 2013
    Posts
    3

    Default

    Intel Mobile 4 Series Chipset Integrated Graphics, I'm working on my laptop

  4. #4
    Join Date
    Jul 2010
    Posts
    449

    Default

    I don't think mesa's software rendering supports anything above OpenGL 2.1. Is it possible for you to create a script that runs a program and collects results? That way other people could run it on OpenGL 3.0+ capable hardware for you. When is your deadline?

  5. #5
    Join Date
    Jul 2009
    Location
    Germany
    Posts
    523

    Default

    Quote Originally Posted by archibald View Post
    I don't think mesa's software rendering supports anything above OpenGL 2.1. Is it possible for you to create a script that runs a program and collects results? That way other people could run it on OpenGL 3.0+ capable hardware for you. When is your deadline?
    There's no OGL 3.0 but GLSL 1.3, at least with latest mesa:

    Code:
    $ LIBGL_ALWAYS_SOFTWARE=1 glxinfo
    [...]
    OpenGL vendor string: VMware, Inc.
    OpenGL renderer string: Gallium 0.4 on softpipe
    OpenGL version string: 2.1 Mesa 9.2-devel (git-12c0cce)
    OpenGL shading language version string: 1.30
    [...]

  6. #6
    Join Date
    Feb 2008
    Location
    Linuxland
    Posts
    5,264

    Default

    Softpipe supports that already in Mesa 8.0.

    OpenGL renderer string: Gallium 0.4 on softpipe
    OpenGL version string: 3.0 Mesa 8.0.3
    OpenGL shading language version string: 1.30

  7. #7
    Join Date
    Jun 2010
    Location
    ฿ 16LDJ6Hrd1oN3nCoFL7BypHSEYL84ca1JR
    Posts
    1,052

    Default

    I want to add a general question:

    How do you choose which driver to use? I compiled mesa with --with-dri-drivers=i915,i965,swrast --with-gallium-drivers=swrast but when I do LIBGL_ALWAYS_SOFTWARE=1 I get llvmpipe instead of softpipe.
    Code:
    LIBGL_ALWAYS_SOFTWARE=1 glxinfo | grep OpenGL
    OpenGL vendor string: VMware, Inc.
    OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.2, 256 bits)
    OpenGL version string: 2.1 Mesa 9.2-devel (git-b63b301)
    OpenGL shading language version string: 1.20
    OpenGL extensions:
    I thought that maybe DRAW_USE_LLVM=0 would maybe make it not use llvmpipe but it doesn't (it certainly does something, glxgears gets much less fps when draw_use_llvm is set to 0).

    In /etc/xorg/modules/dri I only have dummy_drv_video.so i915_dri.la i915_dri.so i965_dri.la i965_dri.so swrast_dri.la swrast_dri.so.
    So maybe I don't quite understand what softpipe ans swrast exactly is. Is softpipe included in swrast? Why do I get llvmpipe even though LIBGL_DEBUG=verbose shows that /usr/lib/xorg/modules/dri/swrast_dri.so is used? Is llvmpipe also included in swrast? Configure says " Driver dirs: galahad identity llvmpipe noop rbug softpipe trace" so it should have been built I guess?

  8. #8
    Join Date
    Nov 2012
    Location
    France
    Posts
    613

    Default

    Quote Originally Posted by Kano View Post
    Simple Nvidia GeForce G210 cards only cost around 20 + shipping, whats the big deal to buy a new one? What's your current card?
    Any graphics card with DDR3 is a scam...

  9. #9
    Join Date
    Feb 2008
    Location
    Linuxland
    Posts
    5,264

    Default

    @ChrisXY

    Use GALLIUM_DRIVER to select between llvmpipe and softpipe.

    LIBGL_ALWAYS_SOFTWARE=1 GALLIUM_DRIVER=softpipe glxinfo


    What I don't know is how to choose between swrast (classic sw renderer) and softpipe, but swrast is pretty dead nowadays.

  10. #10
    Join Date
    Jun 2010
    Location
    ฿ 16LDJ6Hrd1oN3nCoFL7BypHSEYL84ca1JR
    Posts
    1,052

    Default

    Thanks, that does the trick:
    Code:
    LIBGL_ALWAYS_SOFTWARE=1 GALLIUM_DRIVER=softpipe glxinfo | grep OpenGL
    OpenGL vendor string: VMware, Inc.
    OpenGL renderer string: Gallium 0.4 on softpipe
    OpenGL version string: 2.1 Mesa 9.2-devel (git-b63b301)
    OpenGL shading language version string: 1.30
    I had read this documentation page: http://www.mesa3d.org/envvars.html
    And this was not on there.

Posting Permissions

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