Lines Matching defs:state

51                          struct zink_gfx_pipeline_state *state,
55 struct zink_rasterizer_hw_state *hw_rast_state = (void*)state;
57 if (!screen->info.have_EXT_vertex_input_dynamic_state || !state->element_state->num_attribs || !state->uses_dynamic_stride) {
60 vertex_input_state.pVertexBindingDescriptions = state->element_state->b.bindings;
61 vertex_input_state.vertexBindingDescriptionCount = state->element_state->num_bindings;
62 vertex_input_state.pVertexAttributeDescriptions = state->element_state->attribs;
63 vertex_input_state.vertexAttributeDescriptionCount = state->element_state->num_attribs;
64 if (!screen->info.have_EXT_extended_dynamic_state || !state->uses_dynamic_stride) {
65 for (int i = 0; i < state->element_state->num_bindings; ++i) {
67 VkVertexInputBindingDescription *binding = &state->element_state->b.bindings[i];
68 binding->stride = state->vertex_strides[buffer_id];
74 if (!screen->info.have_EXT_vertex_input_dynamic_state && state->element_state->b.divisors_present) {
78 vdiv_state.vertexBindingDivisorCount = state->element_state->b.divisors_present;
79 vdiv_state.pVertexBindingDivisors = state->element_state->b.divisors;
93 primitive_state.primitiveRestartEnable = state->dyn_state2.primitive_restart ? VK_TRUE : VK_FALSE;
98 if (state->dyn_state2.primitive_restart)
103 primitive_state.primitiveRestartEnable = state->dyn_state2.primitive_restart ? VK_TRUE : VK_FALSE;
110 if (state->blend_state) {
111 unsigned num_attachments = state->render_pass ?
112 state->render_pass->state.num_rts :
113 state->rendering_info.colorAttachmentCount;
114 if (state->render_pass && state->render_pass->state.have_zsbuf)
116 if (state->void_alpha_attachments) {
118 blend_att[i] = state->blend_state->attachments[i];
119 if (state->void_alpha_attachments & BITFIELD_BIT(i)) {
127 blend_state.pAttachments = state->blend_state->attachments;
129 blend_state.logicOpEnable = state->blend_state->logicop_enable;
130 blend_state.logicOp = state->blend_state->logicop_func;
135 ms_state.rasterizationSamples = state->rast_samples + 1;
136 if (state->blend_state) {
137 ms_state.alphaToCoverageEnable = state->blend_state->alpha_to_coverage;
138 if (state->blend_state->alpha_to_one && !screen->info.feats.features.alphaToOne) {
142 ms_state.alphaToOneEnable = state->blend_state->alpha_to_one;
150 ms_state.pSampleMask = &state->sample_mask;
163 viewport_state.viewportCount = screen->info.have_EXT_extended_dynamic_state ? 0 : state->dyn_state1.num_viewports;
165 viewport_state.scissorCount = screen->info.have_EXT_extended_dynamic_state ? 0 : state->dyn_state1.num_viewports;
174 rast_state.rasterizerDiscardEnable = state->dyn_state2.rasterizer_discard;
176 rast_state.cullMode = state->dyn_state1.cull_mode;
177 rast_state.frontFace = state->dyn_state1.front_face;
209 depth_stencil_state.depthTestEnable = state->dyn_state1.depth_stencil_alpha_state->depth_test;
210 depth_stencil_state.depthCompareOp = state->dyn_state1.depth_stencil_alpha_state->depth_compare_op;
211 depth_stencil_state.depthBoundsTestEnable = state->dyn_state1.depth_stencil_alpha_state->depth_bounds_test;
212 depth_stencil_state.minDepthBounds = state->dyn_state1.depth_stencil_alpha_state->min_depth_bounds;
213 depth_stencil_state.maxDepthBounds = state->dyn_state1.depth_stencil_alpha_state->max_depth_bounds;
214 depth_stencil_state.stencilTestEnable = state->dyn_state1.depth_stencil_alpha_state->stencil_test;
215 depth_stencil_state.front = state->dyn_state1.depth_stencil_alpha_state->stencil_front;
216 depth_stencil_state.back = state->dyn_state1.depth_stencil_alpha_state->stencil_back;
217 depth_stencil_state.depthWriteEnable = state->dyn_state1.depth_stencil_alpha_state->depth_write;
241 if (state->sample_locations_enabled)
247 if (state->element_state->num_attribs) {
250 else if (screen->info.have_EXT_extended_dynamic_state && state->uses_dynamic_stride)
335 if (state->render_pass)
336 pci.renderPass = state->render_pass->render_pass;
338 pci.pNext = &state->rendering_info;
339 if (!screen->info.have_EXT_vertex_input_dynamic_state || !state->element_state->num_attribs || !state->uses_dynamic_stride)
353 tci.patchControlPoints = state->dyn_state2.vertices_per_patch;
390 zink_create_compute_pipeline(struct zink_screen *screen, struct zink_compute_program *comp, struct zink_compute_pipeline_state *state)
404 if (state->use_local_size) {
408 sinfo.dataSize = sizeof(state->local_size);
409 sinfo.pData = &state->local_size[0];