agx: Add agx_nir_opt_preamble pass
This pass creates preamble shaders. The heavylifting is done by nir_opt_preamble. We do need to define the cost model for nir_opt_preamble, set up 16-bit units for the register file, and scalarize the resulting load/store_preamble intrinsics. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18813>
This commit is contained in:
@@ -790,6 +790,7 @@ void agx_liveness_ins_update(BITSET_WORD *live, agx_instr *I);
|
||||
|
||||
bool agx_lower_resinfo(nir_shader *s);
|
||||
bool agx_nir_lower_array_texture(nir_shader *s);
|
||||
bool agx_nir_opt_preamble(nir_shader *s, unsigned *preamble_size);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern C */
|
||||
|
Reference in New Issue
Block a user