From b582b7f1b609552f36059e782924482708012192 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Thu, 5 Jan 2023 15:44:09 +0000 Subject: [PATCH] aco/gfx11: update s_code_end padding Match ac_rtld_open(). Signed-off-by: Rhys Perry Reviewed-by: Georg Lehmann Cc: 22.3 Part-of: (cherry picked from commit 9e55b3b790997573d7e4110332024d1052d0ccc3) --- .pick_status.json | 2 +- src/amd/compiler/aco_assembler.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index b08e0d2..49487ab 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -1840,7 +1840,7 @@ "description": "aco/gfx11: update s_code_end padding", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": null }, diff --git a/src/amd/compiler/aco_assembler.cpp b/src/amd/compiler/aco_assembler.cpp index 9da9dd3..0816370 100644 --- a/src/amd/compiler/aco_assembler.cpp +++ b/src/amd/compiler/aco_assembler.cpp @@ -1141,7 +1141,7 @@ emit_program(Program* program, std::vector& code) if (program->gfx_level >= GFX10) { /* Pad output with s_code_end so instruction prefetching doesn't cause * page faults */ - unsigned final_size = align(code.size() + 3 * 16, 16); + unsigned final_size = align(code.size() + 3 * 16, program->gfx_level >= GFX11 ? 32 : 16); while (code.size() < final_size) code.push_back(0xbf9f0000u); } -- 2.7.4