winsys/amdgpu: calculate the maximum number of compute units
authorMarek Olšák <marek.olsak@amd.com>
Wed, 2 Sep 2015 17:04:25 +0000 (19:04 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 10 Sep 2015 15:14:15 +0000 (17:14 +0200)
commitc6502e880bba00f8a68f004fe6be7a4bc275494a
tree9c35b0877df9ef702d06a90cd7d50dd0c07eb7ab
parentadeba943e1d89cba824c054bac6a1b64e415921e
winsys/amdgpu: calculate the maximum number of compute units

Required for register spilling.

Cc: 11.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c