freedreno: Split ir3_const's user buffer and indirect upload APIs.
authorEric Anholt <eric@anholt.net>
Thu, 9 Jul 2020 23:57:29 +0000 (16:57 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 5 Aug 2020 23:06:55 +0000 (23:06 +0000)
commit8f637d66cc1fae0f1536e8bfcffdf7c153055382
tree2f4e1ec816cc8dc78302ddd286491e5dff62779e
parent154299934d8a33205117ca1ab4ae2ef112b8447b
freedreno: Split ir3_const's user buffer and indirect upload APIs.

They're almost entirely split by whether you're uploading user buffer or
from a BO.  While I'm rewriting the API, drop the emit_const ->
fdN_emit_const wrapper in favor of a #define before the header and a
little helper for the asserts.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5990>
src/gallium/drivers/freedreno/a3xx/fd3_emit.c
src/gallium/drivers/freedreno/a4xx/fd4_emit.c
src/gallium/drivers/freedreno/a5xx/fd5_emit.c
src/gallium/drivers/freedreno/a6xx/fd6_const.c
src/gallium/drivers/freedreno/ir3/ir3_const.h