svga: fix incorrect round-down arithmetic
authorBrian Paul <brianp@vmware.com>
Mon, 19 Oct 2015 14:41:37 +0000 (08:41 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 19 Oct 2015 14:54:42 +0000 (08:54 -0600)
commit530eb39c71d2f42ef5d6c556aff77c322434f4e2
tree188f2d7b5f5275cc737daaafac511b24e51d4343
parent6f3954618b0fe273af76af79ce9ec56566b79b2a
svga: fix incorrect round-down arithmetic

Spotted by Roland.  Luckily, this code should never really be hit
since the const buffer size and offset should already be multiples
of 16.  I could probably add more assertions to that effect, but
let's just fix the arithmetic for now.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/drivers/svga/svga_state_constants.c