Lines Matching refs:fxn
1922 read_function_impl(read_ctx *ctx, nir_function *fxn) in read_function_impl() argument
1925 fi->function = fxn; in read_function_impl()
1942 write_function(write_ctx *ctx, const nir_function *fxn) in write_function() argument
1944 uint32_t flags = fxn->is_entrypoint; in write_function()
1945 if (fxn->name) in write_function()
1947 if (fxn->impl) in write_function()
1950 if (fxn->name) in write_function()
1951 blob_write_string(ctx->blob, fxn->name); in write_function()
1953 write_add_object(ctx, fxn); in write_function()
1955 blob_write_uint32(ctx->blob, fxn->num_params); in write_function()
1956 for (unsigned i = 0; i < fxn->num_params; i++) { in write_function()
1958 ((uint32_t)fxn->params[i].num_components) | in write_function()
1959 ((uint32_t)fxn->params[i].bit_size) << 8; in write_function()
1977 nir_function *fxn = nir_function_create(ctx->nir, name); in read_function() local
1979 read_add_object(ctx, fxn); in read_function()
1981 fxn->num_params = blob_read_uint32(ctx->blob); in read_function()
1982 fxn->params = ralloc_array(fxn, nir_parameter, fxn->num_params); in read_function()
1983 for (unsigned i = 0; i < fxn->num_params; i++) { in read_function()
1985 fxn->params[i].num_components = val & 0xff; in read_function()
1986 fxn->params[i].bit_size = (val >> 8) & 0xff; in read_function()
1989 fxn->is_entrypoint = flags & 0x1; in read_function()
1991 fxn->impl = NIR_SERIALIZE_FUNC_HAS_IMPL; in read_function()
2035 nir_foreach_function(fxn, nir) { in nir_serialize()
2036 write_function(&ctx, fxn); in nir_serialize()
2039 nir_foreach_function(fxn, nir) { in nir_serialize()
2040 if (fxn->impl) in nir_serialize()
2041 write_function_impl(&ctx, fxn->impl); in nir_serialize()
2090 nir_foreach_function(fxn, ctx.nir) { in nir_deserialize()
2091 if (fxn->impl == NIR_SERIALIZE_FUNC_HAS_IMPL) in nir_deserialize()
2092 fxn->impl = read_function_impl(&ctx, fxn); in nir_deserialize()