ac/radv/radeonsi: refactor harvest config register getters.
authorDave Airlie <airlied@redhat.com>
Mon, 23 Apr 2018 00:42:21 +0000 (10:42 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 23 Apr 2018 23:08:34 +0000 (09:08 +1000)
commita90c9f33cf5c8f7674de989b2c9146466e871459
tree74301765a603cc269e8af4deeee61783d96882e5
parent8e4d54505ab2fa8b47d3df27a69449d4913e1d36
ac/radv/radeonsi: refactor harvest config register getters.

This refactors the code out to share it between radv and radeonsi.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Acked-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/common/ac_gpu_info.c
src/amd/common/ac_gpu_info.h
src/amd/vulkan/si_cmd_buffer.c
src/gallium/drivers/radeonsi/si_state.c