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>
Thu, 31 Oct 2013 08:20:04 +0000 (09:20 +0100)
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>

No differences found