mesa/virgl: Fix off-by-one and copy-paste error in multisample position evaluation
authorGert Wollny <gert.wollny@collabora.com>
Fri, 13 Jul 2018 12:46:31 +0000 (14:46 +0200)
committerGert Wollny <gw.fossdev@gmail.com>
Mon, 16 Jul 2018 10:51:39 +0000 (12:51 +0200)
commit78887e99e3fdc1933c9fd185e38d4e61d05672a4
treef53e29f7d3483fbfe03e9948fe9e1e460e880662
parent4d0d9118756325ea83d254515d4c7a410df96f0e
mesa/virgl: Fix off-by-one and copy-paste error in multisample position evaluation

Converting from a switch statement that would not allow intermediate sample counts
to use an if-else chain went a bit wrong, so that in some cases the range that
should be inclusive was exclusive and the line for 16 samples was copies wrongly.

v2: elaborate commit message.

Fixes: 91f48cdfe5c817158c533a8f67c60e9aabbe4479
       virgl: Add support for glGetMultisample
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> (v1)
src/gallium/drivers/virgl/virgl_context.c