[Mesa-dev] [Bug 88930] [osmesa] osbuffer->textures should be indexed by attachment type

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Feb 2 19:21:38 PST 2015


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

            Bug ID: 88930
           Summary: [osmesa] osbuffer->textures should be indexed by
                    attachment type
           Product: Mesa
           Version: git
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Other
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: pjm0616 at gmail.com
        QA Contact: mesa-dev at lists.freedesktop.org

Created attachment 113080
  --> https://bugs.freedesktop.org/attachment.cgi?id=113080&action=edit
Patch

In osmesa_st_framebuffer_validate(), osbuffer is indexed by i:
>      out[i] = osbuffer->textures[i] =
>         screen->resource_create(screen, &templat);

This caused a crash in OSMesaGetDepthBuffer() at:
>   struct pipe_resource *res = osbuffer->textures[ST_ATTACHMENT_DEPTH_STENCIL];

This has been present since (at least) Mesa 10.1.3 but somehow it worked OK in
10.1.3.

-- 
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/20150203/61e936b6/attachment.html>


More information about the mesa-dev mailing list