agx: compiler: Enable stack_adjust
We'll need this once we start using scratch. Signed-off-by: Asahi Lina <lina@asahilina.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27616>
This commit is contained in:
@@ -2800,10 +2800,7 @@ agx_compile_function_nir(nir_shader *nir, nir_function_impl *impl,
|
||||
emit_cf_list(ctx, &impl->body);
|
||||
agx_emit_phis_deferred(ctx);
|
||||
|
||||
/* TODO: reenable when we have the helper program, and have fixed
|
||||
* scratch_size on shaders that use libagx.
|
||||
*/
|
||||
if (impl->function->is_entrypoint && nir->scratch_size > 0 && false) {
|
||||
if (impl->function->is_entrypoint && nir->scratch_size > 0) {
|
||||
/* Apple always allocate 40 more bytes in the entrypoint and align to 4. */
|
||||
uint64_t stack_size = ALIGN(DIV_ROUND_UP(nir->scratch_size, 4) + 10, 4);
|
||||
|
||||
|
Reference in New Issue
Block a user