Mesa (main): radv: Allow indirect dispatches without bo
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu May 12 15:45:02 UTC 2022
Module: Mesa
Branch: main
Commit: 47f625dcaee963dddc86c008538f2f6fa2c5ac72
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=47f625dcaee963dddc86c008538f2f6fa2c5ac72
Author: Konstantin Seurer <konstantin.seurer at gmail.com>
Date: Fri Apr 1 15:59:19 2022 +0200
radv: Allow indirect dispatches without bo
Signed-off-by: Konstantin Seurer <konstantin.seurer at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15712>
---
src/amd/vulkan/radv_cmd_buffer.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
index 64a68dcd83f..5b7aa8b6d45 100644
--- a/src/amd/vulkan/radv_cmd_buffer.c
+++ b/src/amd/vulkan/radv_cmd_buffer.c
@@ -7315,8 +7315,9 @@ radv_emit_dispatch_packets(struct radv_cmd_buffer *cmd_buffer, struct radv_pipel
dispatch_initiator |= S_00B800_CS_W32_EN(1);
}
- if (info->indirect) {
- radv_cs_add_buffer(ws, cs, info->indirect);
+ if (info->va) {
+ if (info->indirect)
+ radv_cs_add_buffer(ws, cs, info->indirect);
if (loc->sgpr_idx != -1) {
unsigned reg = R_00B900_COMPUTE_USER_DATA_0 + loc->sgpr_idx * 4;
More information about the mesa-commit
mailing list