https://bugs.freedesktop.org/show_bug.cgi?id=90162
Bug ID: 90162 Summary: glGetFramebufferAttachmentParameteriv failing if certain FB attributes are zero Product: Mesa Version: 10.1 Hardware: Other OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: GLX Assignee: mesa-dev@lists.freedesktop.org Reporter: martina.kollar...@intel.com QA Contact: mesa-dev@lists.freedesktop.org Created attachment 115302 --> https://bugs.freedesktop.org/attachment.cgi?id=115302&action=edit reproducer.output The command glGetFramebufferAttachmentParameteriv(GL_FRAMEBUFFER, GL_DEPTH, GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE, &depth_bits) fails with GL_INVALID_OPERATION if the attribute GLX_DEPTH_SIZE is set to 0 (or not explicitly set) in the FB config. The same happens with the command glGetFramebufferAttachmentParameteriv(GL_FRAMEBUFFER, GL_STENCIL, GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE, &stencil_bits) if GLX_STENCIL_SIZE is set to 0 or not explicitly set. You can reproduce those two cases with https://github.com/mkollaro/opengl_snippets/blob/getattachments/glx/main.cpp (after building, run with `./build/bin/glx`). My output is in the attachments as `reproducer.output`. Additionally, if GLX_DOUBLEBUFFER is set to false, the command glGetFramebufferAttachmentParameteriv(GL_FRAMEBUFFER, GL_BACK_LEFT, GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE, &alpha_bits); also fails with GL_INVALID_OPERATION, but not if set to true. This error happened to me in the Chromium project, but I cannot reproduce it in the above mentioned code, because I somehow cannot get a context with GLX_DOUBLEBUFFER set to false (this is probably just my mistake). I would expect this command to return zero if e.g. the depth size is set to zero, or at least use some more informative error message, since the command is correct and only the framebuffer configuration is wrong. My system is Linux Mint 17.1 Rebecca, more info in the glxinfo.output attachment. lspci -vnn|grep VGA 00:02.0 VGA compatible controller [0300]: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller [8086:0416] (rev 06) (prog-if 00 [VGA controller]) 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:13d8] (rev a1) (prog-if 00 [VGA controller]) -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for the bug.
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev