<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - The Witcher 2 (native) fails to start, throws "Assertion `img->_BaseFormat != -1' failed.""
   href="https://bugs.freedesktop.org/show_bug.cgi?id=91314">91314</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>The Witcher 2 (native) fails to start, throws "Assertion `img->_BaseFormat != -1' failed."
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Keywords</th>
          <td>bisected, regression
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Mesa core
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>gyebro69@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I was trying to reproduce <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - witcher 2 glitches a lot"
   href="show_bug.cgi?id=91310">bug #91310</a> 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 <<a href="mailto:itoral@igalia.com">itoral@igalia.com</a>>
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</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>