<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>high
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [i965 Bisected]Piglit/spec/ARB_map_buffer_range/MAP_INVALIDATE_RANGE_BIT decrement-offset core dumped"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=73907">73907</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>idr@freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[i965 Bisected]Piglit/spec/ARB_map_buffer_range/MAP_INVALIDATE_RANGE_BIT decrement-offset core dumped
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>major
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>huax.lu@intel.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Drivers/DRI/i965
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr></table>
      <p>
        <div>
        <pre>System Environment:
--------------------------
Platform: Ironlake/Sandybridge/Ivybridge/Haswell/Baytrail
Libdrm:        (master)libdrm-2.4.52
Mesa:        (master)ded56746890ea826a32d763b2fe2af9a16755e87
Xserver:   
(master)xorg-server-1.15.0-1-ga92c6406e7f6c0b74fb1cb9361ad904facc0f722
Xf86_video_intel:(master)2.99.907-40-gf7121bf733e9b02248fa0b7bb62a902622dd8f10
Cairo:        (master)2a7f133639bed86a29dd9693cb78c0aa42eaff30
Libva:        (staging)79ddde6bab54618046f136471c020c08ff4fde50
Libva_intel_driver:(staging)6736a39fce442a8e5abb2a2e99adf56e3965d35f
Kernel:    (drm-intel-nightly) 164a4cb4c1431a0689f85507868356fae24da638

Bug detailed description:
-----------------------------
It core dumped on Ironlake/Sandybridge/Ivybridge/Haswell/Baytrail with mesa
master branch. It doesn't happen on 10.0 branch.

spec_ARB_map_buffer_range_MAP_INVALIDATE_RANGE_BIT_increment-offset and
spec_ARB_map_buffer_range_MAP_INVALIDATE_RANGE_BIT_offset=0 also core dumped by
same bisect commit.

Bisect shows:1ec663ab193e3dc87eb8729de4f0ecee7027961b is the first bad commit.
commit 1ec663ab193e3dc87eb8729de4f0ecee7027961b
Author:     Ian Romanick <<a href="mailto:ian.d.romanick@intel.com">ian.d.romanick@intel.com</a>>
AuthorDate: Fri Dec 20 12:42:33 2013 -0800
Commit:     Ian Romanick <<a href="mailto:ian.d.romanick@intel.com">ian.d.romanick@intel.com</a>>
CommitDate: Mon Jan 20 11:40:34 2014 -0800

    i965: Ensure that intel_bufferobj_map_range meets alignment guarantees

    No piglit regressions on IVB.

    With minor tweaks to the arb_map_buffer_alignment-map-invalidate-range
    test (disable the extension check, set alignment to 64 instead of
    querying), the i965 driver would fail the test without this patch (as
    predicted by Eric).  With this patch, it passes.

    v2: Remove MAX2(64, ...).  Suggested by Ken.

    Signed-off-by: Ian Romanick <<a href="mailto:ian.d.romanick@intel.com">ian.d.romanick@intel.com</a>>
    Reviewed-by: Kenneth Graunke <<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>>
    Reviewed-by: Eric Anholt <<a href="mailto:eric@anholt.net">eric@anholt.net</a>>
    Cc: Siavash Eliasi <<a href="mailto:siavashserver@gmail.com">siavashserver@gmail.com</a>>

output:
Testing GL_MAP_INVALIDATE_RANGE_BIT.
Offset is decremented.
Floating point exception (core dumped)

(gdb) bt
#0  0xb7a1bfe6 in intel_bufferobj_map_range (ctx=0xb771801c, offset=16776,
length=24, access=6, obj=0x83072d8) at intel_buffer_objects.c:367
#1  0xb778d31d in _mesa_MapBufferRange (target=34962, offset=16776, length=24,
access=6) at main/bufferobj.c:1939
#2  0x080492dc in upload (buffer=1, slot=699, x1=0, y1=0, x2=20, y2=20) at
/GFX/Test/Piglit/piglit/tests/spec/arb_map_buffer_range/invalidate.c:141
#3  0x0804960e in piglit_display () at
/GFX/Test/Piglit/piglit/tests/spec/arb_map_buffer_range/invalidate.c:214
#4  0xb7f09aaf in run_test (gl_fw=0x804b008, argc=3, argv=0xbffff344) at
/GFX/Test/Piglit/piglit/tests/util/piglit-framework-gl/piglit_fbo_framework.c:52
#5  0xb7f07954 in piglit_gl_test_run (argc=3, argv=0xbffff344,
config=0xbffff268) at
/GFX/Test/Piglit/piglit/tests/util/piglit-framework-gl.c:191
#6  0x08048e7d in main (argc=3, argv=0xbffff344) at
/GFX/Test/Piglit/piglit/tests/spec/arb_map_buffer_range/invalidate.c:46

Reproduce steps:
----------------------------
1. xinit
2. bin/map_buffer_range-invalidate MAP_INVALIDATE_RANGE_BIT decrement-offset
-fbo -auto</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>