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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user