Commit 854cc0e4 authored by Kelly Doran's avatar Kelly Doran Committed by Ben Skeggs

drm/nvc0/gr: fix mthd data submission

If the initial data element is 0, it will never be written, even
though the value from the previous method may be there.
Signed-off-by: default avatarKelly Doran <kel.p.doran@gmail.com>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 61b365a5
...@@ -334,7 +334,7 @@ nvc0_graph_mthd(struct nvc0_graph_priv *priv, struct nvc0_graph_mthd *mthds) ...@@ -334,7 +334,7 @@ nvc0_graph_mthd(struct nvc0_graph_priv *priv, struct nvc0_graph_mthd *mthds)
while ((mthd = &mthds[i++]) && (init = mthd->init)) { while ((mthd = &mthds[i++]) && (init = mthd->init)) {
u32 addr = 0x80000000 | mthd->oclass; u32 addr = 0x80000000 | mthd->oclass;
for (data = 0; init->count; init++) { for (data = 0; init->count; init++) {
if (data != init->data) { if (init == mthd->init || data != init->data) {
nv_wr32(priv, 0x40448c, init->data); nv_wr32(priv, 0x40448c, init->data);
data = init->data; data = init->data;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment