# VTK 8.2 with Gallium Driver SWR fails with vtkOpenGLSphereMapper

**URL:** https://discourse.vtk.org/t/vtk-8-2-with-gallium-driver-swr-fails-with-vtkopenglspheremapper/1206
**Category:** Support
**Created:** [June 25, 2019, 1:10am UTC](https://discourse.vtk.org/t/vtk-8-2-with-gallium-driver-swr-fails-with-vtkopenglspheremapper/1206 "2019-06-25T01:10:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![psandana](https://discourse.vtk.org/user_avatar/discourse.vtk.org/psandana/32/438_2.png) [@psandana](https://discourse.vtk.org/u/psandana)
#### Post date: [June 25, 2019, 1:10am UTC](https://discourse.vtk.org/t/vtk-8-2-with-gallium-driver-swr-fails-with-vtkopenglspheremapper/1206/1 "2019-06-25T01:10:00Z")

</div>

Hi,  
I tried to use vtkAtoms which uses vtkOpenGLSphereMapper inside. On the new VTK 8.2 they are using a geometry shader. Using Mesa 17 with the llvmpipe driver works perfectly. But when changing to the SWR driver it fails at linking stating that the maximum number of uniforms is surpassed.

Is this a known issue?  
If not, which is the base support for shaders? As far as I know, glsl140 should be supported, but the geometry shader should be available only in 150 and above.

Can someone help me with this?

---

<div class="post-metadata">

### Author: ![psandana](https://discourse.vtk.org/user_avatar/discourse.vtk.org/psandana/32/438_2.png) [@psandana](https://discourse.vtk.org/u/psandana)
#### Post date: [June 25, 2019, 9:14pm UTC](https://discourse.vtk.org/t/vtk-8-2-with-gallium-driver-swr-fails-with-vtkopenglspheremapper/1206/2 "2019-06-25T21:14:56Z")

</div>

@ken-martin Do you know this or any similar issue?

---

<div class="post-metadata">

### Author: ![ken-martin](https://discourse.vtk.org/user_avatar/discourse.vtk.org/ken-martin/32/884_2.png) [@ken-martin](https://discourse.vtk.org/u/ken-martin)
#### Post date: [June 26, 2019, 2:24pm UTC](https://discourse.vtk.org/t/vtk-8-2-with-gallium-driver-swr-fails-with-vtkopenglspheremapper/1206/3 "2019-06-26T14:24:56Z")

</div>

I have not heard of this before. At one point I know the SWR folks ran the VTK tests to make sure their renderer was working with VTK. I’ll see if I can point this out to one of the SWR folks and see if they have any ideas.

---

<div class="post-metadata">

### Author: ![psandana](https://discourse.vtk.org/user_avatar/discourse.vtk.org/psandana/32/438_2.png) [@psandana](https://discourse.vtk.org/u/psandana)
#### Post date: [June 28, 2019, 7:44pm UTC](https://discourse.vtk.org/t/vtk-8-2-with-gallium-driver-swr-fails-with-vtkopenglspheremapper/1206/4 "2019-06-28T19:44:50Z")

</div>

Hi Ken,  
Debugging the code differences I got that MESA 17.1 has the Geometry Shader code in, but no 17.0. That seems to be my issue. I’m building MESA 17.1 to test it.

Thanks for looking into this anyway.  
Regards,  
Pato
