[Mesa-dev] [Bug 100690] [Regression, bisected] TotalWar: Warhammer corrupted graphics

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Apr 25 01:14:34 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=100690

--- Comment #2 from Kenneth Graunke <kenneth at whitecape.org> ---
Thank you for finding and reporting this!

The game appears to be calling glCopyImageSubData() on a RGBA_UINT32 texture,
with only one miplevel, with min/mag filters set to GL_NEAREST_MIPMAP_LINEAR
and GL_LINEAR.  Mipmap completeness isn't the problem - it's that we started
paying attention to the min/mag filters and noticed that linear-filtering +
integer formats = incomplete textures.  See GL 4.5 Section 8.17:

   "A texture is complete unless any of the following conditions hold true:

    * Any of:
       – The internal format of the texture is integer (see table 8.12).
       – The internal format is STENCIL_INDEX.
       – The internal format is DEPTH_STENCIL, and the value of
         DEPTH_STENCIL_TEXTURE_MODE for the texture is STENCIL_INDEX.

    and either the magnification filter is not NEAREST, or the minification
filter
    is neither NEAREST nor NEAREST_MIPMAP_NEAREST."

Arguably, this could be considered an application bug.  However, the GL 4.5
conformance suite mandated that this very case should work until about a week
before you reported this bug.  So, all the major drivers allowed this case.

I'm reopening the discussion at Khronos (internal bugzilla 16224) based on this
information.  I strongly suspect that they'll say this should be allowed (at
which point my patch is wrong), but I'm not certain exactly what cases will be
allowed yet.

In the meantime, I'm happy to have my patch reverted in Mesa.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170425/a9a5ac10/attachment.html>


More information about the mesa-dev mailing list