v3d: use job's nr_cbufs field
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Wed, 9 Dec 2020 13:41:32 +0000 (14:41 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 9 Dec 2020 17:19:28 +0000 (17:19 +0000)
commit1a535722d31d967c934f7b4d5485de34ae120200
tree0cf932c30ce2a1c30e7b23c5b98fe706378d7dca
parente95465ae0eff1fb96b919427d9813f8543371626
v3d: use job's nr_cbufs field

Instead of computing the number of color buffers in the start binning
function, just use the job's nr_cbufs, which already contains that
value.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Reviewed-by: Jose Maria Casanova Crespo <jmcasanova@igalia.com>
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8006>
src/gallium/drivers/v3d/v3dx_draw.c