/third_party/mesa3d/src/gallium/drivers/zink/ |
D | zink_program.h | 315 return (struct zink_fs_key *)&ctx->gfx_pipeline_state.shader_keys.key[PIPE_SHADER_FRAGMENT]; in zink_set_fs_key() 321 … return (const struct zink_fs_key *)&ctx->gfx_pipeline_state.shader_keys.key[PIPE_SHADER_FRAGMENT]; in zink_get_fs_key() 327 …struct zink_tcs_key *tcs = (struct zink_tcs_key*)&ctx->gfx_pipeline_state.shader_keys.key[PIPE_SHA… in zink_set_tcs_key_patches() 338 …return (const struct zink_tcs_key *)&ctx->gfx_pipeline_state.shader_keys.key[PIPE_SHADER_TESS_CTRL… in zink_get_tcs_key() 348 return (struct zink_vs_key *)&ctx->gfx_pipeline_state.shader_keys.key[PIPE_SHADER_VERTEX]; in zink_set_vs_key() 354 return (const struct zink_vs_key *)&ctx->gfx_pipeline_state.shader_keys.key[PIPE_SHADER_VERTEX]; in zink_get_vs_key() 361 return (struct zink_vs_key_base *)&ctx->gfx_pipeline_state.shader_keys.last_vertex; in zink_set_last_vertex_key() 367 return (const struct zink_vs_key_base *)&ctx->gfx_pipeline_state.shader_keys.last_vertex; in zink_get_last_vertex_key() 374 bool disable = !ctx->gfx_pipeline_state.has_points || !ctx->rast_state->base.sprite_coord_enable; in zink_set_fs_point_coord_key()
|
D | zink_render_pass.c | 488 struct zink_render_pass *rp = ctx->gfx_pipeline_state.render_pass; in setup_framebuffer() 494 ctx->gfx_pipeline_state.next_render_pass = NULL; in setup_framebuffer() 498 if (ctx->gfx_pipeline_state.render_pass) { in setup_framebuffer() 500 … bool must_change = rp_must_change(ctx->gfx_pipeline_state.render_pass, rp, ctx->batch.in_rp); in setup_framebuffer() 504 ctx->gfx_pipeline_state.next_render_pass = rp; in setup_framebuffer() 509 } else if (ctx->gfx_pipeline_state.next_render_pass) { in setup_framebuffer() 512 rp = ctx->gfx_pipeline_state.next_render_pass; in setup_framebuffer() 513 ctx->gfx_pipeline_state.next_render_pass = NULL; in setup_framebuffer() 516 if (rp->pipeline_state != ctx->gfx_pipeline_state.rp_state) { in setup_framebuffer() 517 ctx->gfx_pipeline_state.rp_state = rp->pipeline_state; in setup_framebuffer() [all …]
|
D | zink_draw.cpp | 185 memcpy(&ctx->gfx_pipeline_state.shader_keys.key[pstage].key.vs_base, in update_gfx_program() 186 &ctx->gfx_pipeline_state.shader_keys.last_vertex.key.vs_base, in update_gfx_program() 200 ctx->gfx_pipeline_state.modules[stage] = prog->modules[stage]->shader; in update_gfx_program() 205 …prog = zink_create_gfx_program(ctx, ctx->gfx_stages, ctx->gfx_pipeline_state.dyn_state2.vertices_p… in update_gfx_program() 212 ctx->gfx_pipeline_state.final_hash ^= ctx->curr_program->last_variant_hash; in update_gfx_program() 214 ctx->gfx_pipeline_state.final_hash ^= ctx->curr_program->last_variant_hash; in update_gfx_program() 218 ctx->gfx_pipeline_state.final_hash ^= ctx->curr_program->last_variant_hash; in update_gfx_program() 221 ctx->gfx_pipeline_state.final_hash ^= ctx->curr_program->last_variant_hash; in update_gfx_program() 368 VkPipeline prev_pipeline = ctx->gfx_pipeline_state.pipeline; in update_gfx_pipeline() 370 …VkPipeline pipeline = zink_get_gfx_pipeline(ctx, ctx->curr_program, &ctx->gfx_pipeline_state, mode… in update_gfx_pipeline() [all …]
|
D | zink_state.c | 180 struct zink_gfx_pipeline_state *state = &ctx->gfx_pipeline_state; in zink_bind_vertex_elements_state() 416 struct zink_gfx_pipeline_state* state = &zink_context(pctx)->gfx_pipeline_state; in zink_bind_blend_state() 528 struct zink_gfx_pipeline_state *state = &ctx->gfx_pipeline_state; in zink_bind_depth_stencil_alpha_state() 649 ctx->gfx_pipeline_state.rast_state = rast_bits & BITFIELD_MASK(ZINK_RAST_HW_STATE_SIZE); in zink_bind_rasterizer_state() 651 ctx->gfx_pipeline_state.dirty = true; in zink_bind_rasterizer_state() 656 ctx->gfx_pipeline_state.dirty = true; in zink_bind_rasterizer_state() 662 if (ctx->gfx_pipeline_state.dyn_state1.front_face != ctx->rast_state->front_face) { in zink_bind_rasterizer_state() 663 ctx->gfx_pipeline_state.dyn_state1.front_face = ctx->rast_state->front_face; in zink_bind_rasterizer_state() 664 … ctx->gfx_pipeline_state.dirty |= !zink_screen(pctx->screen)->info.have_EXT_extended_dynamic_state; in zink_bind_rasterizer_state() 666 if (ctx->gfx_pipeline_state.dyn_state1.cull_mode != ctx->rast_state->cull_mode) { in zink_bind_rasterizer_state() [all …]
|
D | zink_context.c | 678 mask = &ctx->gfx_pipeline_state.shader_keys.key[pstage].base.nonseamless_cube_mask; in update_nonseamless_shader_key() 1129 uint32_t enabled_buffers = ctx->gfx_pipeline_state.vertex_buffers_enabled_mask; in zink_set_vertex_buffers() 1176 …else if (!have_input_state && (stride_changed || ctx->gfx_pipeline_state.vertex_buffers_enabled_ma… in zink_set_vertex_buffers() 1178 ctx->gfx_pipeline_state.vertex_buffers_enabled_mask = enabled_buffers; in zink_set_vertex_buffers() 1225 key = &ctx->gfx_pipeline_state.shader_keys.key[shader]; in zink_set_inlinable_constants() 1275 struct zink_shader_key *key = &ctx->gfx_pipeline_state.shader_keys.key[pstage]; in invalidate_inlined_uniforms() 2122 ctx->gfx_pipeline_state.dyn_state2.vertices_per_patch = patch_vertices; in zink_set_patch_vertices() 2126 ctx->gfx_pipeline_state.dirty = true; in zink_set_patch_vertices() 2174 if (ctx->gfx_pipeline_state.sample_locations_enabled && ctx->sample_locations_changed) { in zink_update_vk_sample_locations() 2175 unsigned samples = ctx->gfx_pipeline_state.rast_samples + 1; in zink_update_vk_sample_locations() [all …]
|
D | zink_program.c | 285 …tx->base.screen), prog, ctx->dirty_shader_stages & prog->stages_present, &ctx->gfx_pipeline_state); in zink_update_gfx_program() 970 ctx->gfx_pipeline_state.modules_changed = true; in bind_stage() 975 ctx->gfx_pipeline_state.modules[stage] = VK_NULL_HANDLE; in bind_stage() 977 ctx->gfx_pipeline_state.final_hash ^= ctx->curr_program->last_variant_hash; in bind_stage() 997 …memset(&ctx->gfx_pipeline_state.shader_keys.key[old].key.vs_base, 0, sizeof(struct zink_vs_key_bas… in bind_last_vertex_stage() 1001 …memset(&ctx->gfx_pipeline_state.shader_keys.key[PIPE_SHADER_VERTEX].key.vs_base, 0, sizeof(struct … in bind_last_vertex_stage() 1017 if (ctx->gfx_pipeline_state.dyn_state1.num_viewports != ctx->vp_state.num_viewports) in bind_last_vertex_stage() 1018 ctx->gfx_pipeline_state.dirty = true; in bind_last_vertex_stage() 1019 ctx->gfx_pipeline_state.dyn_state1.num_viewports = ctx->vp_state.num_viewports; in bind_last_vertex_stage() 1112 ctx->gfx_pipeline_state.has_points++; in zink_bind_gs_state() [all …]
|
D | zink_framebuffer.c | 159 psurf = ctx->dummy_surface[util_logbase2_ceil(ctx->gfx_pipeline_state.rast_samples+1)]; in zink_get_framebuffer()
|
D | zink_blit.c | 402 util_blitter_save_blend(ctx->blitter, ctx->gfx_pipeline_state.blend_state); in zink_blit_begin() 405 util_blitter_save_sample_mask(ctx->blitter, ctx->gfx_pipeline_state.sample_mask, 0); in zink_blit_begin()
|
D | zink_context.h | 248 struct zink_gfx_pipeline_state gfx_pipeline_state; member
|
D | zink_descriptors.c | 580 …ctx->gfx_pipeline_state.render_pass && ctx->gfx_pipeline_state.render_pass->state.rts[ctx->fb_stat… in zink_descriptor_util_image_layout_eval()
|
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
D | d3d12_compiler.cpp | 253 if (!ctx->gfx_pipeline_state.blend->is_dual_src) in missing_dual_src_outputs() 350 ctx->gfx_pipeline_state.rast == NULL || in fill_mode_lowered() 356 if (((ctx->gfx_pipeline_state.rast->base.fill_front == PIPE_POLYGON_MODE_LINE && in fill_mode_lowered() 357 ctx->gfx_pipeline_state.rast->base.cull_face != PIPE_FACE_FRONT) || in fill_mode_lowered() 358 (ctx->gfx_pipeline_state.rast->base.fill_back == PIPE_POLYGON_MODE_LINE && in fill_mode_lowered() 359 ctx->gfx_pipeline_state.rast->base.cull_face == PIPE_FACE_FRONT)) && in fill_mode_lowered() 364 if (ctx->gfx_pipeline_state.rast->base.fill_front == PIPE_POLYGON_MODE_POINT) in fill_mode_lowered() 374 for (unsigned i = 0; i < ctx->gfx_pipeline_state.so_info.num_outputs; ++i) { in has_stream_out_for_streams() 375 unsigned stream = ctx->gfx_pipeline_state.so_info.output[i].stream; in has_stream_out_for_streams() 393 ctx->gfx_pipeline_state.rast->base.point_size > 1.0) && in needs_point_sprite_lowering() [all …]
|
D | d3d12_draw.cpp | 372 ptr[2] = fui(ctx->gfx_pipeline_state.rast->base.point_size); in fill_graphics_state_vars() 382 cmd_sig_key->root_sig = ctx->gfx_pipeline_state.root_signature; in fill_graphics_state_vars() 605 if (ctx->gfx_pipeline_state.num_so_targets && in validate_stream_output_targets() 606 ctx->gfx_pipeline_state.stages[PIPE_SHADER_GEOMETRY]) in validate_stream_output_targets() 607 factor = ctx->gfx_pipeline_state.stages[PIPE_SHADER_GEOMETRY]->key.gs.stream_output_factor; in validate_stream_output_targets() 911 util_primconvert_save_rasterizer_state(ctx->primconvert, &ctx->gfx_pipeline_state.rast->base); in d3d12_draw_vbo() 943 struct d3d12_rasterizer_state *rast = ctx->gfx_pipeline_state.rast; in d3d12_draw_vbo() 950 if (ctx->pstipple.enabled && ctx->gfx_pipeline_state.rast->base.poly_stipple_enable) in d3d12_draw_vbo() 957 ctx->gfx_pipeline_state.rast->base.cull_face == PIPE_FACE_FRONT_AND_BACK) in d3d12_draw_vbo() 960 if (ctx->gfx_pipeline_state.prim_type != dinfo->mode) { in d3d12_draw_vbo() [all …]
|
D | d3d12_pipeline_state.cpp | 198 DXGI_FORMAT fmt = ctx->gfx_pipeline_state.rtv_formats[index]; in d3d12_rtv_format() 200 if (ctx->gfx_pipeline_state.blend->desc.RenderTarget[0].LogicOpEnable && in d3d12_rtv_format() 201 !ctx->gfx_pipeline_state.has_float_rtv) { in d3d12_rtv_format() 220 struct d3d12_gfx_pipeline_state *state = &ctx->gfx_pipeline_state; in create_gfx_pipeline_state() 352 uint32_t hash = hash_gfx_pipeline_state(&ctx->gfx_pipeline_state); in d3d12_get_gfx_pipeline_state() 354 &ctx->gfx_pipeline_state); in d3d12_get_gfx_pipeline_state() 360 data->key = ctx->gfx_pipeline_state; in d3d12_get_gfx_pipeline_state()
|
D | d3d12_context.cpp | 160 ctx->gfx_pipeline_state.ves = (struct d3d12_vertex_elements_state *)ve; in d3d12_bind_vertex_elements_state() 387 struct d3d12_blend_state *old_state = ctx->gfx_pipeline_state.blend; in d3d12_bind_blend_state() 389 ctx->gfx_pipeline_state.blend = new_state; in d3d12_bind_blend_state() 474 ctx->gfx_pipeline_state.zsa = (struct d3d12_depth_stencil_alpha_state *) dsa; in d3d12_bind_depth_stencil_alpha_state() 573 ctx->gfx_pipeline_state.rast = (struct d3d12_rasterizer_state *)rs_state; in d3d12_bind_rasterizer_state() 1070 if (ctx->gfx_pipeline_state.stages[stage] == iter) { in delete_shader() 1071 ctx->gfx_pipeline_state.stages[stage] = NULL; in delete_shader() 1334 if (ctx->gfx_pipeline_state.rast && !ctx->gfx_pipeline_state.rast->base.clip_halfz) { in d3d12_set_viewport_states() 1443 ctx->gfx_pipeline_state.num_cbufs = state->nr_cbufs; in d3d12_set_framebuffer_state() 1444 ctx->gfx_pipeline_state.has_float_rtv = false; in d3d12_set_framebuffer_state() [all …]
|
D | d3d12_blit.cpp | 540 util_blitter_save_blend(ctx->blitter, ctx->gfx_pipeline_state.blend); in util_blit_save_state() 541 util_blitter_save_depth_stencil_alpha(ctx->blitter, ctx->gfx_pipeline_state.zsa); in util_blit_save_state() 542 util_blitter_save_vertex_elements(ctx->blitter, ctx->gfx_pipeline_state.ves); in util_blit_save_state() 544 util_blitter_save_rasterizer(ctx->blitter, ctx->gfx_pipeline_state.rast); in util_blit_save_state() 562 util_blitter_save_sample_mask(ctx->blitter, ctx->gfx_pipeline_state.sample_mask, 0); in util_blit_save_state() 563 …util_blitter_save_so_targets(ctx->blitter, ctx->gfx_pipeline_state.num_so_targets, ctx->so_targets… in util_blit_save_state()
|
D | d3d12_context.h | 237 struct d3d12_gfx_pipeline_state gfx_pipeline_state; member
|
D | d3d12_root_signature.cpp | 238 ctx->gfx_pipeline_state.stages[i]; in fill_key()
|
D | d3d12_query.cpp | 344 bool has_xfb = !!ctx->gfx_pipeline_state.num_so_targets; in subquery_should_be_active()
|
/third_party/mesa3d/docs/relnotes/ |
D | 22.0.0.rst | 3245 - zink: update gfx_pipeline_state.vertex_strides when necessary 3247 - Revert "zink: update gfx_pipeline_state.vertex_strides when necessary"
|
D | 19.3.0.rst | 943 - zink: pass line width from rast_state to gfx_pipeline_state.
|