<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - r600g pyrit OpenCL issue on HD6850"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=64600#c14">Comment # 14</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - r600g pyrit OpenCL issue on HD6850"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=64600">bug 64600</a>
              from <span class="vcard"><a class="email" href="mailto:lekensteyn@gmail.com" title="Peter Wu <lekensteyn@gmail.com>"> <span class="fn">Peter Wu</span></a>
</span></b>
        <pre>Created <span class=""><a href="attachment.cgi?id=87536" name="attach_87536" title="piglit test kernel with pyrit">attachment 87536</a> <a href="attachment.cgi?id=87536&action=edit" title="piglit test kernel with pyrit">[details]</a></span>
piglit test kernel with pyrit

The patches did avoid the crash, but the results are still invalid.

For convenience, I have added some test vectors and glue to the pyrit kernel. I
don't know if such a complex testcase is acceptable for piglit, hence I am
posting it here. Let me know if such a case is suitable for piglit and if it
should be posted to the piglit list too.

The test passes with the POCL implementation but not with the R600 one.

Without the patches the output is:
## Test: Pyrit WPA2-PSK accelerator
(/src/piglit/tests/cl/program/program-tester.c) ##

# Running on:
#   Platform: Default
#   Device: AMD BARTS
#   OpenCL version: 1.1
#   OpenCL C version: 1.1
#   Build options:  -cl-std=CL1.1
Program has been built successfully
<span class="quote">> Running kernel test: </span >
Using kernel opencl_pmk_kernel
Setting kernel arguments...
Running the kernel...
cl-program-tester: /src/llvm/include/llvm/MC/MCRegisterInfo.h:65: unsigned int
llvm::MCRegisterClass::getRegister(unsigned int) const: Assertion `i <
getNumRegs() && "Register number out of range!"' failed.
Stack dump:
0.      Running pass 'Function Pass Manager' on module 'radeon'.
1.      Running pass 'R600 Handle indirect addressing' on function
'@opencl_pmk_kernel'
Aborted (core dumped)

With branch tsellar/r600-private-mem-fixes, up to commit cf5d9a2:
[..]
Running the kernel...
Validating results...
Expecting 3201012614 (0xbecb9386) with tolerance 0, but got 844928435
(0x325c95b3)
Error at uint[0]
 Argument 1: FAIL
PIGLIT:subtest {'' : 'fail'}
<span class="quote">>> Some or all of the tests FAILED</span >
# Result:
PIGLIT: {'result': 'fail' }</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>