[PATCH 1/7] tests/amdgpu: make amdgpu_sdma_test_exec_cs() generic

Emil Velikov emil.l.velikov at gmail.com
Thu Feb 4 15:43:58 UTC 2016


On 4 February 2016 at 14:59, Alex Deucher <alexdeucher at gmail.com> wrote:
> Share with upcoming CP tests.
>
> Reviewed-by: Ken Wang <Qingqing.Wang at amd.com>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
> ---
>  tests/amdgpu/basic_tests.c | 58 ++++++++++++++++++++++++++++------------------
>  1 file changed, 35 insertions(+), 23 deletions(-)
>
> diff --git a/tests/amdgpu/basic_tests.c b/tests/amdgpu/basic_tests.c
> index fa0ed12..1bcc835 100644
> --- a/tests/amdgpu/basic_tests.c
> +++ b/tests/amdgpu/basic_tests.c
> @@ -49,6 +49,13 @@ static void amdgpu_command_submission_sdma(void);
>  static void amdgpu_userptr_test(void);
>  static void amdgpu_semaphore_test(void);
>
> +static void amdgpu_test_exec_cs_helper(amdgpu_context_handle context_handle,
> +                                      unsigned ip_type,
> +                                      int instance, int pm4_dw, uint32_t *pm4_src,
> +                                      int res_cnt, amdgpu_bo_handle *resources,
> +                                      struct amdgpu_cs_ib_info *ib_info,
> +                                      struct amdgpu_cs_request *ibs_request);
> +
We don't need the forward declaration, do we ?

-Emil


More information about the dri-devel mailing list