i965: Simplify Broadwell's 3DSTATE_MULTISAMPLE sample count handling.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 10 Feb 2014 00:14:27 +0000 (16:14 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 19 Feb 2014 23:35:32 +0000 (15:35 -0800)
commit2ed5824a5d5400d1534139d2bda9858b95b67234
tree7b4c70fb60701247bf80540fef6218036758311c
parent7700c73cf4ba780e41c351a86976aa01a995c3ce
i965: Simplify Broadwell's 3DSTATE_MULTISAMPLE sample count handling.

These enumerations are simply log2 of the number of multisamples shifted
by a bit, so we can calculate them using ffs() in a lot less code.

Suggested by Eric Anholt.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/gen8_multisample_state.c