turnip: Add magic register values to tu_physical_device
authorChad Versace <chad@kiwitree.net>
Fri, 7 Feb 2020 01:47:59 +0000 (17:47 -0800)
committerMarge Bot <eric+marge@anholt.net>
Wed, 12 Feb 2020 23:27:43 +0000 (23:27 +0000)
commitef5da26089975a6f26096151da9fa94f55fc338f
tree0a5c4ca47f5dc5c5bcf27ce34ee3b9ccf5a8f777
parent18786cc7d55598e82fe1de45bd2c3ffea136418e
turnip: Add magic register values to tu_physical_device

The value of some magic regsiters differ across chipsets. fd6_context
manages the differences by initializing them at runtime. Let's do the
same.

Add to tu_physical_device a subset of those found in fd6_context:

    RB_UNKNOWN_8E04_blit
    RB_CCU_CNTL_gmem
    PC_UNKNOWN_9805
    SP_UNKNOWN_A0F8

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3743>
src/freedreno/vulkan/tu_blit.c
src/freedreno/vulkan/tu_cmd_buffer.c
src/freedreno/vulkan/tu_device.c
src/freedreno/vulkan/tu_private.h