r600g: Use R600_MAX_VIEWPORTS instead of 16
authorAlexandre Demers <alexandre.f.demers@gmail.com>
Wed, 25 Feb 2015 06:50:49 +0000 (01:50 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 9 Mar 2015 22:02:05 +0000 (23:02 +0100)
commit7a37d5c3a48c4adec5b5db589b0cb99dc9296f0c
tree5fc262b93870f00bffa1891849d0173ff6f88c38
parent85df48b45a3bdc8c25b37b243a9f2a2398fc9e24
r600g: Use R600_MAX_VIEWPORTS instead of 16

Lets define R600_MAX_VIEWPORTS instead of using 16 here and there
in the code when looping through viewports and scissors. It is
easier to understand what this number represents.

v2: Missed a case where R600_MAX_VIEWPORTS should have been used.

Signed-off-by: Alexandre Demers <alexandre.f.demers@gmail.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_hw_context.c
src/gallium/drivers/r600/r600_pipe.c
src/gallium/drivers/r600/r600_pipe.h
src/gallium/drivers/r600/r600_state.c