gpu: host1x: check relocs after all gathers are consumed
commita9ff999538ab2bf6d3b1ed8ab5a016bfc6fe2cd1
authorErik Faye-Lund <kusmabite@gmail.com>
Fri, 4 Oct 2013 20:18:33 +0000 (4 20:18 +0000)
committerThierry Reding <treding@nvidia.com>
Thu, 31 Oct 2013 08:20:04 +0000 (31 09:20 +0100)
tree801777608998d0a63d02d9ade96248fbbc7ffe22
parentf28c38ae866af00140e8139726ed21de2f4b916b
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