aco/gfx11: update s_code_end padding

Match ac_rtld_open().

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Cc: 22.3 <mesa-stable>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20536>
This commit is contained in:
Rhys Perry
2023-01-05 15:44:09 +00:00
committed by Marge Bot
parent aab4a260db
commit 9e55b3b790
+1 -1
View File
@@ -1141,7 +1141,7 @@ emit_program(Program* program, std::vector<uint32_t>& 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);
}