Home
last modified time | relevance | path

Searched refs:state_slots (Results 1 - 18 of 18) sorted by relevance

/third_party/mesa3d/src/compiler/nir/
H A Dnir_lower_pntc_ytransform.c52 var->state_slots = ralloc_array(var, nir_state_slot, 1); in get_pntc_transform()
53 var->state_slots[0].swizzle = SWIZZLE_XYZW; in get_pntc_transform()
54 memcpy(var->state_slots[0].tokens, state->pntc_state_tokens, in get_pntc_transform()
55 sizeof(var->state_slots[0].tokens)); in get_pntc_transform()
H A Dnir_lower_point_size_mov.c48 in->state_slots = ralloc_array(in, nir_state_slot, 1); in lower_impl()
49 in->state_slots[0].swizzle = BITFIELD_MASK(4); in lower_impl()
50 memcpy(in->state_slots[0].tokens, in lower_impl()
52 sizeof(in->state_slots[0].tokens)); in lower_impl()
H A Dnir_lower_patch_vertices.c37 var->state_slots = ralloc_array(var, nir_state_slot, var->num_state_slots); in make_uniform()
38 memcpy(var->state_slots[0].tokens, tokens, sizeof(*tokens) * STATE_LENGTH); in make_uniform()
39 var->state_slots[0].swizzle = SWIZZLE_XXXX; in make_uniform()
H A Dnir_lower_atomics_to_ssbo.c41 if (var->state_slots[0].tokens[0] == offset_align_state && in deref_offset_var()
42 var->state_slots[0].tokens[1] == binding) in deref_offset_var()
47 var->state_slots = ralloc_array(var, nir_state_slot, 1); in deref_offset_var()
48 var->state_slots[0].tokens[0] = offset_align_state; in deref_offset_var()
49 var->state_slots[0].tokens[1] = binding; in deref_offset_var()
H A Dnir_lower_alpha_test.c103 var->state_slots = ralloc_array(var, nir_state_slot, 1); in nir_lower_alpha_test()
104 memcpy(var->state_slots[0].tokens, in nir_lower_alpha_test()
106 sizeof(var->state_slots[0].tokens)); in nir_lower_alpha_test()
H A Dnir_lower_wpos_ytransform.c60 var->state_slots = ralloc_array(var, nir_state_slot, 1); in get_transform()
61 var->state_slots[0].swizzle = SWIZZLE_XYZW; in get_transform()
62 memcpy(var->state_slots[0].tokens, state->options->state_tokens, in get_transform()
63 sizeof(var->state_slots[0].tokens)); in get_transform()
H A Dnir_lower_drawpixels.c78 var->state_slots = ralloc_array(var, nir_state_slot, 1); in create_uniform()
79 memcpy(var->state_slots[0].tokens, state_tokens, in create_uniform()
80 sizeof(var->state_slots[0].tokens)); in create_uniform()
H A Dnir_lower_clip.c236 var->state_slots = ralloc_array(var, nir_state_slot, 1); in get_ucp()
237 memcpy(var->state_slots[0].tokens, in get_ucp()
239 sizeof(var->state_slots[0].tokens)); in get_ucp()
H A Dnir_split_per_member_structs.c66 assert(var->state_slots == NULL); in split_variable()
H A Dnir_clone.c161 nvar->state_slots = ralloc_array(nvar, nir_state_slot, var->num_state_slots); in nir_variable_clone()
162 memcpy(nvar->state_slots, var->state_slots, in nir_variable_clone()
H A Dnir_serialize.c327 blob_write_bytes(ctx->blob, &var->state_slots[i], in write_variable()
328 sizeof(var->state_slots[i])); in write_variable()
395 var->state_slots = ralloc_array(var, nir_state_slot, in read_variable()
398 blob_copy_bytes(ctx->blob, &var->state_slots[i], in read_variable()
399 sizeof(var->state_slots[i])); in read_variable()
H A Dnir.h173 * \sa nir_variable::state_slots
725 * Once set at variable creation, \c state_slots must remain invariant.
731 * \c state_slots will be \c NULL.
735 nir_state_slot *state_slots; /**< State descriptors. */
/third_party/mesa3d/src/mesa/state_tracker/
H A Dst_nir_lower_builtin.c150 var->state_slots = rzalloc_array(var, nir_state_slot, 1); in get_variable()
151 memcpy(var->state_slots[0].tokens, tokens, in get_variable()
152 sizeof(var->state_slots[0].tokens)); in get_variable()
H A Dst_glsl_to_nir.cpp198 } else if (uniform->state_slots) { in st_nir_assign_uniform_locations()
199 const gl_state_index16 *const stateTokens = uniform->state_slots[0].tokens; in st_nir_assign_uniform_locations()
478 const nir_state_slot *const slots = var->state_slots; in st_glsl_to_nir_post_opts()
/third_party/mesa3d/src/gallium/drivers/d3d12/
H A Dd3d12_nir_passes.c55 var->state_slots = ralloc_array(var, nir_state_slot, 1); in d3d12_get_state_var()
56 memcpy(var->state_slots[0].tokens, tokens, in d3d12_get_state_var()
57 sizeof(var->state_slots[0].tokens)); in d3d12_get_state_var()
546 variable->state_slots[0].tokens[0] != STATE_INTERNAL_DRIVER) in lower_instr()
549 enum d3d12_state_var var = variable->state_slots[0].tokens[1]; in lower_instr()
590 var->state_slots[0].tokens[0] == STATE_INTERNAL_DRIVER) { in d3d12_lower_state_vars()
624 var->state_slots[0].tokens[0] == STATE_INTERNAL_DRIVER) { in d3d12_lower_state_vars()
639 ubo->state_slots = ralloc_array(ubo, nir_state_slot, 1); in d3d12_lower_state_vars()
640 memcpy(ubo->state_slots[0].tokens, tokens, in d3d12_lower_state_vars()
641 sizeof(ubo->state_slots[ in d3d12_lower_state_vars()
[all...]
H A Dd3d12_lower_point_sprite.c258 state.uniform->state_slots = ralloc_array(state.uniform, nir_state_slot, 1); in d3d12_lower_point_sprite()
259 memcpy(state.uniform->state_slots[0].tokens, tokens, in d3d12_lower_point_sprite()
260 sizeof(state.uniform->state_slots[0].tokens)); in d3d12_lower_point_sprite()
/third_party/mesa3d/src/compiler/glsl/
H A Dir.h395 * \sa ir_variable::state_slots
581 return this->is_interface_instance() ? NULL : this->u.state_slots; in get_state_slots()
586 return this->is_interface_instance() ? NULL : this->u.state_slots; in get_state_slots()
593 this->u.state_slots = ralloc_array(this, ir_state_slot, n); in allocate_state_slots()
596 if (this->u.state_slots != NULL) in allocate_state_slots()
599 return this->u.state_slots; in allocate_state_slots()
1028 * Once set at variable creation, \c state_slots must remain invariant.
1031 * and \c state_slots will be \c NULL.
1033 ir_state_slot *state_slots; member
H A Dglsl_to_nir.cpp700 var->state_slots = rzalloc_array(var, nir_state_slot, in visit()
703 ir_state_slot *state_slots = ir->get_state_slots(); in visit() local
706 var->state_slots[i].tokens[j] = state_slots[i].tokens[j]; in visit()
707 var->state_slots[i].swizzle = state_slots[i].swizzle; in visit()
710 var->state_slots = NULL; in visit()

Completed in 26 milliseconds