freedreno: Check cb0 in rebind_resource()
authorRob Clark <robdclark@chromium.org>
Wed, 10 Mar 2021 16:44:55 +0000 (08:44 -0800)
committerMarge Bot <eric+marge@anholt.net>
Thu, 11 Mar 2021 04:42:16 +0000 (04:42 +0000)
commit1a12d682a6e5af0b7c7f7548740722171e07a674
treec5c404440a1bf1579ba8a502600c38a844ab8c1d
parent00eb60ee59eecf7b2a8a6d316c3e605c9dd91dbc
freedreno: Check cb0 in rebind_resource()

Previously we were expecting cb0 to be user_buffer.  (We did in some
cases upload it to a gpu buffer, but this was an internally allocated
buffer and not something subject to rebind.)  But with TC it becomes
a gpu buffer.

(Technically, with pctx->const_uploader, we shouldn't hit the rebind
path for cb0, but better to not try to be overly clever.. sooner or
later that would bite us.)

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9323>
src/gallium/drivers/freedreno/freedreno_resource.c