nir: Add functions to subtract and compare addresses
v2: Fix comparing addresses from formats that have more than one component by using nir_ball_iequal(). (Jason) Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
@@ -3198,6 +3198,12 @@ nir_address_format_to_glsl_type(nir_address_format addr_format)
|
||||
|
||||
const nir_const_value *nir_address_format_null_value(nir_address_format addr_format);
|
||||
|
||||
nir_ssa_def *nir_build_addr_ieq(struct nir_builder *b, nir_ssa_def *addr0, nir_ssa_def *addr1,
|
||||
nir_address_format addr_format);
|
||||
|
||||
nir_ssa_def *nir_build_addr_isub(struct nir_builder *b, nir_ssa_def *addr0, nir_ssa_def *addr1,
|
||||
nir_address_format addr_format);
|
||||
|
||||
nir_ssa_def * nir_explicit_io_address_from_deref(struct nir_builder *b,
|
||||
nir_deref_instr *deref,
|
||||
nir_ssa_def *base_addr,
|
||||
|
Reference in New Issue
Block a user