Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-61691

Pixel format selection fails on Windows with llvmpipe on AMD FirePro

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 5.9.0
    • GUI: OpenGL
    • Windows 10 + Qt 5.9.0 + Any CPU with AMD WorkStation GPU

    Description

      We have an environment where any Qt Quick Application project and adding a line "QCoreApplication::setAttribute(Qt::AA_UseSoftwareOpenGL);" in the main.cpp code .

      results inĀ Error.

      Error is "Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 1, profile QSurfaceFormat::OpenGLContextProfile(NoProfile)) ."
      qt.qpa.gl: Qt: Using WGL and OpenGL from "opengl32sw.dll"
      qt.qpa.gl: QOpenGLStaticContext::create OpenGL: "VMware, Inc.","Gallium 0.4 on llvmpipe (LLVM 3.6, 128 bits)" default ContextFormat: v3.0 profile: QSurfaceFormat::OpenGLContextProfile(NoProfile) options: QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions),SampleBuffers, Extension-API present
      Extensions: 207
      qt.qpa.gl: QWindowsIntegration::createPlatformOpenGLContext QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 1, profile  QSurfaceFormat::OpenGLContextProfile(NoProfile))
      qt.qpa.gl: ARB::choosePixelFormat  obtained px # 45  not acceptable= PIXELFORMATDESCRIPTOR dwFlags=0x8c25 PFD_DRAW_TO_WINDOW PFD_SUPPORT_OPENGL PFD_SUPPORT_COMPOSITION PFD_DOUBLEBUFFER PFD_SWAP_LAYER_BUFFERS overlay iPixelType=0 cColorBits=32 cRedBits=8 cRedShift=16 cGreenBits=8 cGreenShift=8 cBlueBits=8 cBlueShift=0 cDepthBits=16 cAuxBuffers=4 iLayerType=0 cAlphaBits=8 cAlphaShift=24
      qt.qpa.gl: "ARB::choosePixelFormat  Attributes:  0x2003 , 0x2027 , 0x2010 , 0x1 , 0x2001 , 0x1 , 0x2014 , 0x18 , 0x2011 , 0x1 , 0x2022 , 0x18 , 0x2013 , 0x202b , 0x201b , 0x8 , 0x2023 , 0x8 , 0x2041 , 0x0 , \n    obtained px # 0  of  1 \n     PIXELFORMATDESCRIPTOR dwFlags=0x8c25 PFD_DRAW_TO_WINDOW PFD_SUPPORT_OPENGL PFD_SUPPORT_COMPOSITION PFD_DOUBLEBUFFER PFD_SWAP_LAYER_BUFFERS overlay iPixelType=0 cColorBits=32 cRedBits=8 cRedShift=16 cGreenBits=8 cGreenShift=8 cBlueBits=8 cBlueShift=0 cDepthBits=16 cAuxBuffers=4 iLayerType=0 cAlphaBits=8 cAlphaShift=24 "
      Attempted to use GDI functions with a non-opengl32.dll library
      QWindowsGLContext::QWindowsGLContext: Unable find a suitable pixel format.
      qt.qpa.gl: QWindowsGLContext::QWindowsGLContext 0x1e4f2c38260 ARB  requested:  QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 1, profile  QSurfaceFormat::OpenGLContextProfile(NoProfile)) 
          obtained # 0 GDI QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DefaultSwapBehavior), swapInterval 1, profile  QSurfaceFormat::OpenGLContextProfile(NoProfile)) 
           PIXELFORMATDESCRIPTOR dwFlags=0x8c25 PFD_DRAW_TO_WINDOW PFD_SUPPORT_OPENGL PFD_SUPPORT_COMPOSITION PFD_DOUBLEBUFFER PFD_SWAP_LAYER_BUFFERS overlay iPixelType=0 cColorBits=32 cRedBits=8 cRedShift=16 cGreenBits=8 cGreenShift=8 cBlueBits=8 cBlueShift=0 cDepthBits=16 cAuxBuffers=4 iLayerType=0 cAlphaBits=8 cAlphaShift=24  swap interval:  -1 
          default:  ContextFormat: v3.0 profile: QSurfaceFormat::OpenGLContextProfile(NoProfile) options: QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions) 
          HGLRC= 0x0
      

      Note the QWindowsGLContext::QWindowsGLContext: Unable find a suitable pixel format. line.

      Attachments

        1. Backtrace.txt
          20 kB
        2. qLOG.txt
          3 kB
        3. QTBUG-61691.zip
          4 kB
        4. qtdiag Report.txt
          5 kB
        5. Qt WS Error.png
          Qt WS Error.png
          116 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lagocs Laszlo Agocs
            misalmel Mika Salmela
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes