OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61b365a
)
drm/nvc0/gr: fix mthd data submission
author
Kelly Doran
<kel.p.doran@gmail.com>
Fri, 20 Dec 2013 17:07:26 +0000
(11:07 -0600)
committer
Ben Skeggs
<bskeggs@redhat.com>
Tue, 7 Jan 2014 03:37:54 +0000
(13:37 +1000)
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: Kelly Doran <kel.p.doran@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/engine/graph/nvc0.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/core/engine/graph/nvc0.c
b/drivers/gpu/drm/nouveau/core/engine/graph/nvc0.c
index
434bb4b
..
5c8a63d
100644
(file)
--- a/
drivers/gpu/drm/nouveau/core/engine/graph/nvc0.c
+++ b/
drivers/gpu/drm/nouveau/core/engine/graph/nvc0.c
@@
-334,7
+334,7
@@
nvc0_graph_mthd(struct nvc0_graph_priv *priv, struct nvc0_graph_mthd *mthds)
while ((mthd = &mthds[i++]) && (init = mthd->init)) {
u32 addr = 0x80000000 | mthd->oclass;
for (data = 0; init->count; init++) {
- if (data != init->data) {
+ if (
init == mthd->init ||
data != init->data) {
nv_wr32(priv, 0x40448c, init->data);
data = init->data;
}