<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 - test_vec4_register_coalesce regression"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=94050">94050</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>test_vec4_register_coalesce regression
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (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>vlee@freedesktop.org
          </td>
        </tr>

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

        <tr>
          <th>CC</th>
          <td>imirkin@alum.mit.edu, mattst88@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>mesa: 01dacc83ff43a054513277e3e1296c3fc8cd750a (master 11.2.0-devel)

Running main() from gtest_main.cc
[==========] Running 2 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 2 tests from copy_propagation_test
[ RUN      ] copy_propagation_test.test_swizzle_swizzle

Program received signal SIGSEGV, Segmentation fault.
brw::vec4_visitor::opt_copy_propagation (this=this@entry=0xab73a0,
do_constant_prop=do_constant_prop@entry=true)
    at brw_vec4_copy_propagation.cpp:403
403          prog_data->dispatch_mode == DISPATCH_MODE_4X2_DUAL_OBJECT ? 1 : 2;
(gdb) bt
#0  brw::vec4_visitor::opt_copy_propagation (this=this@entry=0xab73a0,
do_constant_prop=do_constant_prop@entry=true)
    at brw_vec4_copy_propagation.cpp:403
#1  0x000000000040aa89 in copy_propagation (v=0xab73a0) at
test_vec4_copy_propagation.cpp:118
#2  copy_propagation_test_test_swizzle_swizzle_Test::TestBody (this=<optimized
out>) at test_vec4_copy_propagation.cpp:146
#3  0x000000000042eb63 in
testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>
(
    location=0x744498 "the test body", method=<optimized out>,
object=<optimized out>) at ./src/gtest.cc:2078
#4  testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>
(object=object@entry=0xab6950, 
    method=(void (testing::Test::*)(testing::Test * const)) 0x40a860
<copy_propagation_test_test_swizzle_swizzle_Test::TestBody()>,
location=location@entry=0x744498 "the test body") at ./src/gtest.cc:2114
#5  0x00000000004265da in testing::Test::Run (this=0xab6950) at
./src/gtest.cc:2151
#6  0x0000000000426728 in testing::TestInfo::Run (this=0xab2cb0) at
./src/gtest.cc:2326
#7  0x0000000000426805 in testing::TestCase::Run (this=0xab31a0) at
./src/gtest.cc:2444
#8  0x000000000042745f in testing::internal::UnitTestImpl::RunAllTests
(this=0xab2de0) at ./src/gtest.cc:4315
#9  0x000000000042f043 in
testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,
bool> (
    location=0x743760 "auxiliary test code (environments or event listeners)",
method=<optimized out>, object=<optimized out>)
    at ./src/gtest.cc:2078
#10
testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,
bool> (object=0xab2de0, 
    method=(bool
(testing::internal::UnitTestImpl::*)(testing::internal::UnitTestImpl * const))
0x427220 <testing::internal::UnitTestImpl::RunAllTests()>,
location=location@entry=0x743760 "auxiliary test code (environments or event
listeners)")
    at ./src/gtest.cc:2114
#11 0x00000000004268d4 in testing::UnitTest::Run (this=0xa9b380
<testing::UnitTest::GetInstance()::instance>)
    at ./src/gtest.cc:3926
#12 0x0000000000407cd2 in RUN_ALL_TESTS () at
../../src/gtest/include/gtest/gtest.h:2288
#13 main (argc=1, argv=0x7fffffffde88) at src/gtest_main.cc:37
(gdb) frame 0
#0  brw::vec4_visitor::opt_copy_propagation (this=this@entry=0xab73a0,
do_constant_prop=do_constant_prop@entry=true)
    at brw_vec4_copy_propagation.cpp:403
403          prog_data->dispatch_mode == DISPATCH_MODE_4X2_DUAL_OBJECT ? 1 : 2;
(gdb) print prog_data
$1 = (brw_vue_prog_data * const) 0x0

9f2e22bf343b21d6b44e6a502f00a86d169f5ade is the first bad commit
commit 9f2e22bf343b21d6b44e6a502f00a86d169f5ade
Author: Matt Turner <<a href="mailto:mattst88@gmail.com">mattst88@gmail.com</a>>
Date:   Sun Jan 17 20:30:14 2016 -0500

    i965/vec4: don't copy ATTR into 3src instructions with complex swizzles

    The vec4 backend, at the end, does this:

        if (inst->is_3src()) {
           for (int i = 0; i < 3; i++) {
              if (inst->src[i].vstride == BRW_VERTICAL_STRIDE_0)
                 assert(brw_is_single_value_swizzle(inst->src[i].swizzle));

    So make sure that we use the same conditions when trying to
    copy-propagate. UNIFORMs will be converted to vstride 0 in
    convert_to_hw_regs, but so will ATTRs when interleaved (as will happen
    in a GS with multiple attributes). Since the vstride is not set at
    copy-prop time, infer it by inspecting dispatch_mode and reject ATTRs if
    they have non-scalar swizzles and are interleaved.

    Fixes assertion errors in dolphin-generated geometry shaders (or
    misrendering on opt builds) on Sandybridge or on IVB/HSW with
    INTEL_DEBUG=nodualobj.

    Co-authored-by: Ilia Mirkin <<a href="mailto:imirkin@alum.mit.edu">imirkin@alum.mit.edu</a>>
    Reviewed-by: Ilia Mirkin <<a href="mailto:imirkin@alum.mit.edu">imirkin@alum.mit.edu</a>>
    Bugzilla: <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Geometry Shaders output wrong vertices on Sandy Bridge"
   href="show_bug.cgi?id=93418">https://bugs.freedesktop.org/show_bug.cgi?id=93418</a>
    Cc: "11.0 11.1" <<a href="mailto:mesa-stable@lists.freedesktop.org">mesa-stable@lists.freedesktop.org</a>>

:040000 040000 94f60208f3cd3e0345ea3201f522616d7c36272a
c0846463c47e4d72e129afdd4efcf90afa5ee71b M    src
bisect run success</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>