winsys/amdgpu: add amdgpu_ib and amdgpu_cs_from_ib helper functions
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 7 May 2016 02:16:05 +0000 (21:16 -0500)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 1 Jun 2016 20:52:19 +0000 (22:52 +0200)
commitf80c6abb9e591d788c7c8f5167dcd7cb744e8b4a
treecfc95e5fb031ec4f4fb7ac2d2b5eb94baa11616d
parent9e5ed559babc468b94877ecc8e2367b70c43122f
winsys/amdgpu: add amdgpu_ib and amdgpu_cs_from_ib helper functions

The latter function allows getting the containing amdgpu_cs from any IB
(including non-main ones).

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/winsys/amdgpu/drm/amdgpu_cs.c
src/gallium/winsys/amdgpu/drm/amdgpu_cs.h