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:

committed by
Marge Bot

parent
445ca949cd
commit
c9728b41d5
@@ -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 */
|
||||
|
Reference in New Issue
Block a user