Mesa (master): v3d: Let scheduler know GS doesn’t have shared I/O memory

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jun 22 07:03:07 UTC 2020


Module: Mesa
Branch: master
Commit: 053df9bd8f24ef4576cb19eacb3c273bf1ed9e68
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=053df9bd8f24ef4576cb19eacb3c273bf1ed9e68

Author: Neil Roberts <nroberts at igalia.com>
Date:   Wed Jun 17 15:22:32 2020 +0200

v3d: Let scheduler know GS doesn’t have shared I/O memory

Unlike the vertex shaders, the memory for inputs and outputs is stored
in separate segments so the scheduler doesn’t need to serialise them.

Reviewed-by: Eric Anholt <eric at anholt.net>
Reviewed-by: Iago Toral Quiroga <itoral at igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5561>

---

 src/broadcom/compiler/vir.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/broadcom/compiler/vir.c b/src/broadcom/compiler/vir.c
index 4c9e99cfd77..ff2e0290122 100644
--- a/src/broadcom/compiler/vir.c
+++ b/src/broadcom/compiler/vir.c
@@ -1083,7 +1083,8 @@ uint64_t *v3d_compile(const struct v3d_compiler *compiler,
                  */
                 .stages_with_shared_io_memory =
                 (((1 << MESA_ALL_SHADER_STAGES) - 1) &
-                 ~(1 << MESA_SHADER_FRAGMENT)),
+                 ~((1 << MESA_SHADER_FRAGMENT) |
+                   (1 << MESA_SHADER_GEOMETRY))),
         };
         NIR_PASS_V(c->s, nir_schedule, &schedule_options);
 



More information about the mesa-commit mailing list