v3dv/debug: add debug option to disable TFU codepaths
authorAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 14 Mar 2023 11:34:31 +0000 (12:34 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 17 Mar 2023 15:20:25 +0000 (15:20 +0000)
commit20a066e9ab862c271039612536296b3139553adb
treefeebe50f41ad6718290cfd5d5b225d1c09c1679d
parent46813ffecb523bc832bf4bf1a9c231d4ecaaeb6d
v3dv/debug: add debug option to disable TFU codepaths

This can have two main uses:
  * If we suspect a problem with TFU copies, we can disable it and
    check if other codepaths gets a test/app working.
  * To test other codepaths, as in general, TFU is the preferred
    option for copies.

Note that for now this is only for v3dv, as for v3d, mipmap generation
uses TFU without an alternative codepath.

With this option we also adds an assert if we try to submit a TFU job,
just in case we keep adding other methods that use TFU, and forget to
include the debug option there.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Juan A. Suarez <jasuarez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21952>
src/broadcom/common/v3d_debug.c
src/broadcom/common/v3d_debug.h
src/broadcom/vulkan/v3dv_meta_copy.c
src/broadcom/vulkan/v3dv_queue.c