Questions tagged [mesa]

A free and open source implementation of graphics and compute APIs such as Vulkan, OpenGL and OpenCL. Typically used in GNU/Linux on AMD or Intel GPUs. Use this tag for questions about issues in your code running on Mesa or in questions about compiling Mesa itself.

Mesa 3D is a free and open source library that implements graphics and APIs such as Vulkan, OpenGL and OpenCL (among others) with support for hardware acceleration on several different types of GPUs.

Supported hardware are Intel and AMD GPUs, along with several GPUs that are found in ARM chips, such as Adreno, Mali, Vivante and V3D. There is also a driver for NVidia GPUs, however it is somewhat limited on modern chips.

The latest releases can be found on the official website, and here is a list of the supported feature set for each driver.

219 questions
1
vote
1 answer

Compilation failure in vertex shader unless MESA_GL_VERSION_OVERRIDE=3.0 is set

I'm trying to run this GL demo but it only runs in CentOS 7 if I set MESA_GL_VERSION_OVERRIDE=3.0 as shown here: git clone https://github.com/ebassi/glarea-example.git make MESA_GL_VERSION_OVERRIDE=3.0 ./glarea Without that environment variable I…
KJ7LNW
  • 1,437
  • 5
  • 11
1
vote
1 answer

How does the OpenGL function loading mechanism work?

Modern OpenGL (>1.2) functions must be loaded at runtime. Exactly how this is done is platform-dependent, but it always seems to involve calling a "get-function" that returns a pointer to the function you requested. Two questions: Who implements…
user2251965
  • 371
  • 2
  • 9
1
vote
1 answer

Running vulkaninfo returns error: vulkaninfo.h:477: failed with ERROR_INITIALIZATION_FAILED

Iḿ trying to get vulkan to work but I get the following error: vulkaninfo ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_radeon.so: wrong ELF class: ELFCLASS32 ERROR: [Loader Message] Code 0 :…
Mister Tee
  • 80
  • 1
  • 7
1
vote
2 answers

Trying to compile my first opengl/mesa app

I'm trying to compile my first program openGL app. This is my code: #include #include #include using namespace std; int main(int argc, char** argv) { glutInit(&argc, argv); return 0; } I…
tirenweb
  • 30,963
  • 73
  • 183
  • 303
1
vote
1 answer

How to get the distance between nodes with Mesa and Networkx on Python?

I am following this example called Virus on Network from the Mesa library which creates network graphs using Networkx. Here is its function screening a node's neighbors to try to infect them with a virus. def try_to_infect_neighbors(self): …
KubiK888
  • 4,377
  • 14
  • 61
  • 115
1
vote
0 answers

Different implementations of glTextureStorage2D GLES on same machine have different behaviours

I'm calling glTextureStorage2D to generate a framebuffer in my engine. I'm using Google's Angle on windows and using libglfw3-dev & libgles2-mesa-dev on ubuntu running on the same machine. Creating 8bit RGBA textures is fine on both platforms but…
Luther
  • 1,786
  • 3
  • 21
  • 38
1
vote
0 answers

Unexpected display error when trying to remove specific edges from network graph using Python, Mesa and Networkx

I am extending the Virus on Network example from Mesa. The current network graph is like this. However, I want to remove the edges from the dead hosts (black). My attempt is within the try_check_death(): model_agent.py import random import…
KubiK888
  • 4,377
  • 14
  • 61
  • 115
1
vote
1 answer

(Geo) Mesa agent based model not displaying results and no model stepping

I am trying to create an agent based model for city fire based on wild fire example: https://github.com/projectmesa/mesa/tree/master/examples/forest_fire/forest_fire The code below is not displaying any results and the model is not stepping. Option…
alex dun
  • 21
  • 2
1
vote
1 answer

Why this .c file just have one line "../xx/xx.c"?

I want to build mesa3d source code for some reason. I follow the guide on https://mesa3d.org/install.html and the build environment is fedora31 and gcc9.2, but there are some build error when I trying to build the code with running ninja…
Y.L
  • 69
  • 6
1
vote
2 answers

How to update OpenGL pass version 2.1 on WSL?

I am running scripts on WSL that requires graphical output from mayavi but I am getting the following error: GL version 2.1 with the gpu_shader4 extension is not supported by your graphics driver but is required for the new OpenGL rendering backend.…
Ang Jit Wei Aaron
  • 389
  • 1
  • 3
  • 19
1
vote
0 answers

Java AWT BorderLayout() seems to crash libGLX_mesa.so.0 in Ubuntu Linux ver 18.04.1

I have a large Java application that includes many commands such as new JPanel(new BorderLayout()) this.setLayout(new BorderLayout()); but not all of them seem to cause the crashing. I can prevent crashing by removing new BorderLayout() in some…
microajim
  • 17
  • 9
1
vote
1 answer

Unable to install mesa using anaconda

I have tried installing mesa using conda install -c anaconda mesa as available on their official site here But I am getting the following error message Collecting package metadata (current_repodata.json): done Solving environment: failed with…
GOVIND DIXIT
  • 1,748
  • 10
  • 27
1
vote
1 answer

Filling GL_LINE_STRIP gaps when thickness > 1 destroys transparency

I am using GL_LINE_STRIP and glLineWidth to draw lines. However, this leads to gaps between the single, straight segments of the strip. I had mitigated the problem by using Catmull-Rom Splines and thus the segments where smooth enough to not notice…
PhilLab
  • 4,777
  • 1
  • 25
  • 77
1
vote
0 answers

The version compatibility relationship of Xorg-server, Mesa(OpenGL) and Linux kernel

I found lots of documents to explain the software relation(stack) of Xserver, Mesa and Linux kernel like as following. [1] https://blogs.igalia.com/itoral/2014/07/29/a-brief-introduction-to-the-linux-graphics-stack/ [2]…
user1395066
  • 127
  • 1
  • 1
  • 11
1
vote
0 answers

How do we interpret Mesa compiler error message?

I have built MESA with OpenSWR on Windows. I am getting an error in my shader code that I cannot understand/correct. The same code runs fine using just GLEW/Nvidia drivers. Here's the error message: name= identfshader, error= 0:27(8): error: syntax…