panfrost: Factor out panfrost_compute_magic_divisor
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 25 Dec 2019 02:35:52 +0000 (21:35 -0500)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 25 Dec 2019 03:42:07 +0000 (22:42 -0500)
commit467ae0d39da4238f8ac7b7674fa2f17bdfeb03e0
treeb0035884e9453292e9c6f23c9440e8e4ce1a7728
parent31305e1b2854c6a70dc8c61265f525fcb52c265d
panfrost: Factor out panfrost_compute_magic_divisor

The algorithm doesn't need to be tangled up in details about the
attribute records themselves. We'll need to compute magic divisors for
gl_InstanceID in a second.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/encoder/pan_attributes.c