vs-temp-array-mat3-index-col-rd test fails with SB
Submitted by Martin Andersson
Assigned to mes..@..op.org
Description
Created attachment 89688 Shader dump when test fails
I did a little investigation on why the piglit test: vs-temp-array-mat3-index-col-rd fails with SB.
If I disable SB with R600_DEBUG=nosb the test passes.
I did a bisect and found this commit: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7ae9cc71f097af5ae1f83f77f75de2198849faca
If I revert that commit the test passes with SB, but I'm pretty sure that commit only exposed a bug that weren't hit before.
I looked at the shader dumps and the only thing I found that looked a little strange was this.
before: 7ae9cc71 z: SETE T0.z, R[2+AR].y, KC0[2].y w: SETE T1.w, R[2+AR].z, KC0[2].z x: SETE T1.x, R[2+AR].x, KC0[2].x
after: 7ae9cc71 w: SETE_DX10 T0.w, R[2+AR].z, KC0[2].z z: SETE_DX10 T0.z, R[2+AR].y, KC0[2].y x: SETE_DX10 T1.x, R[0+AR].x, KC0[2].x
Is R[0+AR].x correct in the last line or should it be R[2+AR].x?
Tested with mesa master: 751e8697
Attachment 89688, "Shader dump when test fails":
sb-fails
Version: git