[Bug 107073] Some miptree maps don't use intel_mipmap_tree::offset

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Jun 29 21:39:00 UTC 2018


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

            Bug ID: 107073
           Summary: Some miptree maps don't use intel_mipmap_tree::offset
           Product: Mesa
           Version: git
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/DRI/i965
          Assignee: intel-3d-bugs at lists.freedesktop.org
          Reporter: nanleychery at gmail.com
        QA Contact: intel-3d-bugs at lists.freedesktop.org

Miptree maps for stencil, depth-stencil, and etc-decompressed-workaround
miptrees don't use ::offset. This seems wrong.

I think we may run into an issue in the following case:
1. Create a DRI image from a miptree level > 1 via
__DRIimageExtensionRec::createImageFromTexture. The level must be in a
different tile than the base level. This will set __DRIimage::offset > 0.
2. Create an aformentioned problematic miptree from that image using
EGLImageTargetRenderbufferStorage or EGLImageTargetTexture2D (maybe also
__DriverAPIRec::MakeCurrent?). These use intel_miptree_create_for_dri_image
internally and will set intel_mipmap_tree::offset > 0.
3. Map the miptree for reading. We'll expect data from the level > 1, but we'll
instead get data from the base level.

If this is indeed possbile, we need a piglit test to confirm the issue and a
Mesa patch to fix it.

-- 
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/intel-3d-bugs/attachments/20180629/50091b60/attachment.html>


More information about the intel-3d-bugs mailing list