Home
last modified time | relevance | path

Searched refs:state_slots (Results 1 – 19 of 19) sorted by relevance

/third_party/mesa3d/src/compiler/nir/
Dnir_lower_point_size_mov.c49 in->state_slots = ralloc_array(in, nir_state_slot, 1); in lower_impl()
50 in->state_slots[0].swizzle = 0; in lower_impl()
51 memcpy(in->state_slots[0].tokens, in lower_impl()
53 sizeof(in->state_slots[0].tokens)); in lower_impl()
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()
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()
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()
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()
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()
Dnir_lower_clip.c220 var->state_slots = ralloc_array(var, nir_state_slot, 1); in get_ucp()
221 memcpy(var->state_slots[0].tokens, in get_ucp()
223 sizeof(var->state_slots[0].tokens)); in get_ucp()
Dnir_split_per_member_structs.c66 assert(var->state_slots == NULL); in split_variable()
Dnir_clone.c160 nvar->state_slots = ralloc_array(nvar, nir_state_slot, var->num_state_slots); in nir_variable_clone()
161 memcpy(nvar->state_slots, var->state_slots, in nir_variable_clone()
Dnir_serialize.c323 blob_write_bytes(ctx->blob, &var->state_slots[i], in write_variable()
324 sizeof(var->state_slots[i])); in write_variable()
389 var->state_slots = ralloc_array(var, nir_state_slot, in read_variable()
392 blob_copy_bytes(ctx->blob, &var->state_slots[i], in read_variable()
393 sizeof(var->state_slots[i])); in read_variable()
Dnir.h632 nir_state_slot *state_slots; /**< State descriptors. */ member
/third_party/mesa3d/src/gallium/drivers/d3d12/
Dd3d12_nir_passes.c54 var->state_slots = ralloc_array(var, nir_state_slot, 1); in get_state_var()
55 memcpy(var->state_slots[0].tokens, tokens, in get_state_var()
56 sizeof(var->state_slots[0].tokens)); in get_state_var()
435 variable->state_slots[0].tokens[0] != STATE_INTERNAL_DRIVER) in lower_instr()
438 enum d3d12_state_var var = variable->state_slots[0].tokens[1]; in lower_instr()
479 var->state_slots[0].tokens[0] == STATE_INTERNAL_DRIVER) { in d3d12_lower_state_vars()
513 var->state_slots[0].tokens[0] == STATE_INTERNAL_DRIVER) { in d3d12_lower_state_vars()
528 ubo->state_slots = ralloc_array(ubo, nir_state_slot, 1); in d3d12_lower_state_vars()
529 memcpy(ubo->state_slots[0].tokens, tokens, in d3d12_lower_state_vars()
530 sizeof(ubo->state_slots[0].tokens)); in d3d12_lower_state_vars()
Dd3d12_lower_point_sprite.c254 state.uniform->state_slots = ralloc_array(state.uniform, nir_state_slot, 1); in d3d12_lower_point_sprite()
255 memcpy(state.uniform->state_slots[0].tokens, tokens, in d3d12_lower_point_sprite()
256 sizeof(state.uniform->state_slots[0].tokens)); in d3d12_lower_point_sprite()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_nir_lower_builtin.c156 var->state_slots = rzalloc_array(var, nir_state_slot, 1); in get_variable()
157 memcpy(var->state_slots[0].tokens, tokens, in get_variable()
158 sizeof(var->state_slots[0].tokens)); in get_variable()
Dst_glsl_to_nir.cpp219 } else if (uniform->state_slots) { in st_nir_assign_uniform_locations()
220 const gl_state_index16 *const stateTokens = uniform->state_slots[0].tokens; in st_nir_assign_uniform_locations()
487 const nir_state_slot *const slots = var->state_slots; in st_glsl_to_nir_post_opts()
/third_party/mesa3d/src/compiler/glsl/
Dir.h585 return this->is_interface_instance() ? NULL : this->u.state_slots; in get_state_slots()
590 return this->is_interface_instance() ? NULL : this->u.state_slots; in get_state_slots()
597 this->u.state_slots = ralloc_array(this, ir_state_slot, n); in allocate_state_slots()
600 if (this->u.state_slots != NULL) in allocate_state_slots()
603 return this->u.state_slots; in allocate_state_slots()
1039 ir_state_slot *state_slots; member
Dglsl_to_nir.cpp663 var->state_slots = rzalloc_array(var, nir_state_slot, in visit()
666 ir_state_slot *state_slots = ir->get_state_slots(); in visit() local
669 var->state_slots[i].tokens[j] = state_slots[i].tokens[j]; in visit()
670 var->state_slots[i].swizzle = state_slots[i].swizzle; in visit()
673 var->state_slots = NULL; in visit()
/third_party/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_nir_uniforms.cpp35 const nir_state_slot *const slots = var->state_slots; in brw_nir_setup_glsl_builtin_uniform()
36 assert(var->state_slots != NULL); in brw_nir_setup_glsl_builtin_uniform()
Dbrw_link.cpp351 const nir_state_slot *const slots = var->state_slots; in brw_link_shader()