代码之家  ›  专栏  ›  技术社区  ›  pwe

paraview在Mesa中需要更高的OpenGL

  •  1
  • pwe  · 技术社区  · 6 年前

    我正在尝试在CentOS中使用paraview 5.3.0。

    我用Qt5编译了它。当我启动paraview时,它告诉我:

    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. Please update your OpenGL driver. If you 
    are using Mesa please make sure you have version 10.6.5 or later and make sure your driver 
    in Mesa supports OpenGL 3.2.
    

    这是车载图形卡:

    lspci |grep VGA
    03:00.0 VGA compatible controller: Matrox Electronics Systems Ltd. Device 0536 (rev 04)
    

    还有glxinfo:

    glxinfo | grep OpenGL
    OpenGL vendor string: VMware, Inc.
    OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.9, 256 bits)
    OpenGL version string: 2.1 Mesa 17.0.1
    OpenGL shading language version string: 1.30
    OpenGL extensions:
    OpenGL ES profile version string: OpenGL ES 2.0 Mesa 17.0.1
    OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16
    OpenGL ES profile extensions:
    

    我不明白什么“…确保你的司机在梅萨…”方法

    亲切的问候

    2 回复  |  直到 6 年前
        1
  •  1
  •   Mathieu Westphal    6 年前

    将llvmpipe/gallium与软件渲染器mesa一起使用时,可能会错误地检测到OpenGL功能。最简单的修复方法是强制:

    MESA_GL_VERSION_OVERRIDE=3.3 ./bin/paraview
    
        2
  •  0
  •   Sergio Monteleone    6 年前

    这个 LLV管道 是软件渲染驱动程序。

    我不知道您是否在VM上运行CentOS(即使glxinfo说“OpenGL供应商字符串:VMware,Inc.”,这并不意味着您正在VMware上运行)。

    如果您不是以VM来宾身份运行CentOS,请考虑为您的视频卡安装适当的mesa驱动程序。