panfrost: Add routines to calculate stack size/shift
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 9 Dec 2019 14:00:24 +0000 (09:00 -0500)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 12 Dec 2019 16:42:07 +0000 (11:42 -0500)
commiteac9247b2dfebdb22a3446f588b00ec773b9e3fa
treeb46700cb22c4ffa82daba3b17bf8f8f0cc18c441
parente6f8ef93cab9d00328fefb63519375279456713b
panfrost: Add routines to calculate stack size/shift

These implement the aforementioned formulas.

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