iris: make iris_bind_reserve_3d and Wa_1604061319 only check for dirty render bindings
authorDave Airlie <airlied@redhat.com>
Sat, 3 Jul 2021 00:04:47 +0000 (10:04 +1000)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 4 Jul 2021 06:37:57 +0000 (23:37 -0700)
commit4504fabed659d9085ce9c3aae590c5728e872b7e
treecde30d72d6f1de23e0da6bf9bfcb55195c5d9a66
parentc246af0dd805033b743dfe0be96c1077f35e0934
iris: make iris_bind_reserve_3d and Wa_1604061319 only check for dirty render bindings

+    9.31%  drawover:gdrv0  iris_dri.so      [.] iris_binder_reserve_3d

+    2.36%  drawover:gdrv0  iris_dri.so         [.] iris_binder_reserve_3d

If the app never uses compute, then the compute bindings bit will always
be dirty causing these two paths never get shortcuts.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11699>
src/gallium/drivers/iris/iris_binder.c
src/gallium/drivers/iris/iris_context.h
src/gallium/drivers/iris/iris_state.c