Announcement

Collapse
No announcement yet.

Using software rendering

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • CZerta
    started a topic Using software rendering

    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...

  • CZerta
    replied
    Thanks, that helped me too. Deadline is next week, but I need to implement some graphic algorithms and it would be complicated to try it on somebody's computer.

    Leave a comment:


  • curaga
    replied
    True, even a google search for that on site:mesa3d.org finds nothing.

    Would you like to submit a patch to mesa? A one-liner to the HTML documentation would surely be a soft landing to mesa development

    Leave a comment:


  • ChrisXY
    replied
    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.

    Leave a comment:


  • curaga
    replied
    @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.

    Leave a comment:


  • Calinou
    replied
    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...

    Leave a comment:


  • ChrisXY
    replied
    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?

    Leave a comment:


  • curaga
    replied
    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

    Leave a comment:


  • droste
    replied
    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
    [...]

    Leave a comment:


  • archibald
    replied
    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?

    Leave a comment:

Working...
X