nv50/accel: Fix mangled A8+A8 shader.
PATCH 1/1 nv50/accel: Fix mangled A8+A8 shader.
Turns out we used a misaligned long instruction near the end, and the shader was getting killed after writing R, A components. This has gone unnoticed since the remaining G, B outputs aren't actually used.
--- src/nv50_accel.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
src/nv50_accel.c +3 -2
@@ -291,7 +291,7 @@ NVAccelInitNV50TCL(ScrnInfoPtr pScrn)OUT_RING (chan, (0 <<NV50TCL_CB_DEF_SET_BUFFER_SHIFT ) |0x4000 );BEGIN_RING (chan, tesla,NV50TCL_CB_ADDR ,1 );OUT_RING (chan,0 ); -BEGIN_RING_NI (chan, tesla,NV50TCL_CB_DATA (0 ),15 ); +BEGIN_RING_NI (chan, tesla,NV50TCL_CB_DATA (0 ),16 );OUT_RING (chan,0x80000000 );OUT_RING (chan,0x90000004 );OUT_RING (chan,0x82030208 );
@@ -302,7 +302,8 @@ NVAccelInitNV50TCL(ScrnInfoPtr pScrn)OUT_RING (chan,0x00008784 );OUT_RING (chan,0xf0400209 );OUT_RING (chan,0x00008784 ); -OUT_RING (chan,0xc002000c ); +OUT_RING (chan,0xc002000d ); +OUT_RING (chan,0x00000780 );OUT_RING (chan,0x10008600 );OUT_RING (chan,0x10008604 );OUT_RING (chan,0x10000609 );
Signature · 1 line
1.6.4.1
A message that is not in the archive (sent off-list or not yet received): 1265389269-9520-1-git-send-email-koriakin-mP9o5jsk0RY@public.gmane.org
Quoted 3 lines · Marcin Kościelnicki
Turns out we used a misaligned long instruction near the end, and the shader was getting killed after writing R, A components. This has gone unnoticed since the remaining G, B outputs aren't actually used.
Thank you, pushed.
Quoted 18 lines
--- src/nv50_accel.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)src/nv50_accel.c +1
-1@@ -291,7 +291,7 @@ NVAccelInitNV50TCL(ScrnInfoPtr pScrn)OUT_RING (chan, (0 <<NV50TCL_CB_DEF_SET_BUFFER_SHIFT ) |0x4000 );BEGIN_RING (chan, tesla,NV50TCL_CB_ADDR ,1 );OUT_RING (chan,0 ); -BEGIN_RING_NI (chan, tesla,NV50TCL_CB_DATA (0 ),15 ); +BEGIN_RING_NI (chan, tesla,NV50TCL_CB_DATA (0 ),16 );OUT_RING (chan,0x80000000 );OUT_RING (chan,0x90000004 );OUT_RING (chan,0x82030208 );
src/nv50_accel.c NVAccelInitNV50TCL(ScrnInfoPtr pScrn) · line 309
Quoted 9 lines
src/nv50_accel.c +2
-1@@ -302,7 +302,8 @@ NVAccelInitNV50TCL(ScrnInfoPtr pScrn)OUT_RING (chan,0x00008784 );OUT_RING (chan,0xf0400209 );OUT_RING (chan,0x00008784 ); -OUT_RING (chan,0xc002000c ); +OUT_RING (chan,0xc002000d ); +OUT_RING (chan,0x00000780 );OUT_RING (chan,0x10008600 );OUT_RING (chan,0x10008604 );OUT_RING (chan,0x10000609 );
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau