projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34311c7
)
drm/nvc0/grctx: correct an off-by-one
author
Ben Skeggs
<bskeggs@redhat.com>
Fri, 21 Jan 2011 12:34:13 +0000
(22:34 +1000)
committer
Ben Skeggs
<bskeggs@redhat.com>
Tue, 25 Jan 2011 01:05:01 +0000
(11:05 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvc0_grctx.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/nouveau/nvc0_grctx.c
b/drivers/gpu/drm/nouveau/nvc0_grctx.c
index b9e68b2d30aa5c1819426e63212f72ba8ce7c926..f880ff776db8562842142ebbc5482632e9ff2ecd 100644
(file)
--- a/
drivers/gpu/drm/nouveau/nvc0_grctx.c
+++ b/
drivers/gpu/drm/nouveau/nvc0_grctx.c
@@
-1830,7
+1830,7
@@
nvc0_grctx_generate(struct nouveau_channel *chan)
for (tp = 0, id = 0; tp < 4; tp++) {
for (gpc = 0; gpc < priv->gpc_nr; gpc++) {
- if (tp <
=
priv->tp_nr[gpc]) {
+ if (tp < priv->tp_nr[gpc]) {
nv_wr32(dev, TP_UNIT(gpc, tp, 0x698), id);
nv_wr32(dev, TP_UNIT(gpc, tp, 0x4e8), id);
nv_wr32(dev, GPC_UNIT(gpc, 0x0c10 + tp * 4), id);