amd/common: Extract some helper functions to ac_shader_util.
authorTimur Kristóf <timur.kristof@gmail.com>
Wed, 25 Sep 2019 12:10:18 +0000 (14:10 +0200)
committerConnor Abbott <cwabbott0@gmail.com>
Thu, 26 Sep 2019 13:36:49 +0000 (13:36 +0000)
commitdb1fddcf0fa91a71282b439fe0406d26585eab9f
treeb53c5007f8c93d8585d890092c0a2f74ae43cd65
parentd8b46f8964782b6f1fafb574447f1605e40e394f
amd/common: Extract some helper functions to ac_shader_util.

This commit moves ac_get_tbuffer_format, ac_get_sampler_dim and
ac_get_image_dim into ac_shader_util, thus enabling them to be used
by compilers other than LLVM.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/amd/common/ac_llvm_build.c
src/amd/common/ac_llvm_build.h
src/amd/common/ac_nir_to_llvm.c
src/amd/common/ac_shader_util.c
src/amd/common/ac_shader_util.h