agx: Factor out allows_16bit_immediate check

The optimizer needs this information to inline immediates effectively.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21430>
This commit is contained in:
Alyssa Rosenzweig
2023-02-18 17:05:57 -05:00
committed by Marge Bot
parent 445ca949cd
commit c9728b41d5
4 changed files with 17 additions and 3 deletions

View File

@@ -808,6 +808,7 @@ agx_validate(UNUSED agx_context *ctx, UNUSED const char *after_str)
unsigned agx_read_registers(agx_instr *I, unsigned s);
unsigned agx_write_registers(agx_instr *I, unsigned d);
bool agx_allows_16bit_immediate(agx_instr *I);
struct agx_copy {
/* Base register destination of the copy */