]> git.karo-electronics.de Git - karo-tx-linux.git/commit
gpu: host1x: check relocs after all gathers are consumed
authorErik Faye-Lund <kusmabite@gmail.com>
Fri, 4 Oct 2013 20:18:33 +0000 (20:18 +0000)
committerThierry Reding <treding@nvidia.com>
Wed, 16 Oct 2013 18:02:49 +0000 (20:02 +0200)
commit4532acc4dd1b69098d7619572b208c32bcad6cf8
tree801777608998d0a63d02d9ade96248fbbc7ffe22
parent38cca4fc24799362290112d20a19301427973937
gpu: host1x: check relocs after all gathers are consumed

The num_relocs count are passed to the kernel per job, not per gather.

For multi-gather jobs, we would previously fail if there were relocs in
other gathers aside from the first one.

Fix this by simply moving the check until all gathers have been
consumed.

Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Acked-By: Terje Bergstrom <tbergstrom@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/job.c