[Mesa-dev] [Bug 91314] The Witcher 2 (native) fails to start, throws "Assertion `img->_BaseFormat != -1' failed."
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sun Jul 12 01:12:04 PDT 2015
https://bugs.freedesktop.org/show_bug.cgi?id=91314
Bug ID: 91314
Summary: The Witcher 2 (native) fails to start, throws
"Assertion `img->_BaseFormat != -1' failed."
Product: Mesa
Version: git
Hardware: Other
OS: All
Status: NEW
Keywords: bisected, regression
Severity: normal
Priority: medium
Component: Mesa core
Assignee: mesa-dev at lists.freedesktop.org
Reporter: gyebro69 at gmail.com
QA Contact: mesa-dev at lists.freedesktop.org
I was trying to reproduce bug #91310 on my NV92, but the game fails to start
for me, terminal shows:
witcher2: main/teximage.c:1320: init_teximage_fields_ms: Assertion
`img->_BaseFormat != -1' failed.
The game starts properly when using the llvmpipe driver.
The problem was introduced by
commit 3473a84fb2c2cdab0bcecb43fbf519d9b3fc0142
Author: Iago Toral Quiroga <itoral at igalia.com>
Date: Fri Nov 28 10:03:56 2014 +0100
mesa: Fix incorrect assertion in init_teximage_fields_ms
_BaseFormat is a GLenum (unsigned int) so testing if its value is
greater than 0 to detect the cases where _mesa_base_tex_format
returns -1 doesn't work.
Fixing the assertion breaks the arb_texture_view-lifetime-format
piglit test on nouveau, since that test calls
_mesa_base_tex_format with GL_R16F with a context that does not
have ARB_texture_float, so it returns -1 for the BaseFormat, which
was not being caught properly by the ASSERT in init_teximage_fields_ms
until now.
Reverting the patch on Mesa 10.5.9 fixes the issue for me.
Fedora 22 32-bit
Kernel 4.1.2
VGA compatible controller: NVIDIA Corporation G92 [GeForce GTS 250] (rev a2)
(prog-if 00 [VGA controller])
libdrm, nouveau ddx, Mesa from git
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150712/4f5d3f1a/attachment.html>
More information about the mesa-dev
mailing list