/aosp_15_r20/external/mesa3d/src/gallium/drivers/zink/ |
H A D | zink_program.h | 252 &ctx->gfx_pipeline_state.shader_keys_optimal.key.fs : in zink_set_fs_base_key() 253 &ctx->gfx_pipeline_state.shader_keys.key[MESA_SHADER_FRAGMENT].key.fs.base; in zink_set_fs_base_key() 260 &ctx->gfx_pipeline_state.shader_keys_optimal.key.fs : in zink_get_fs_base_key() 261 &ctx->gfx_pipeline_state.shader_keys.key[MESA_SHADER_FRAGMENT].key.fs.base; in zink_get_fs_base_key() 269 return &ctx->gfx_pipeline_state.shader_keys.key[MESA_SHADER_FRAGMENT].key.fs; in zink_set_fs_key() 276 return &ctx->gfx_pipeline_state.shader_keys.key[MESA_SHADER_FRAGMENT].key.fs; in zink_get_fs_key() 284 return &ctx->gfx_pipeline_state.shader_keys.key[MESA_SHADER_GEOMETRY].key.gs; in zink_set_gs_key() 290 return &ctx->gfx_pipeline_state.shader_keys.key[MESA_SHADER_GEOMETRY].key.gs; in zink_get_gs_key() 297 &ctx->gfx_pipeline_state.shader_keys_optimal.key.tcs : in zink_set_tcs_key_patches() 298 … &ctx->gfx_pipeline_state.shader_keys.key[MESA_SHADER_TESS_CTRL].key.tcs; in zink_set_tcs_key_patches() [all …]
|
H A D | zink_program.c | 253 …shadow_needs_shader_swizzle = ctx ? ctx->gfx_pipeline_state.shader_keys_optimal.key.fs.shadow_need… in create_shader_module_for_stage_optimal() 308 key = (uint16_t*)&ctx->gfx_pipeline_state.shader_keys_optimal.key.vs_base; in get_shader_module_for_stage_optimal() 310 key = (uint16_t*)&ctx->gfx_pipeline_state.shader_keys_optimal.key.fs; in get_shader_module_for_stage_optimal() 311 …shadow_needs_shader_swizzle = ctx->gfx_pipeline_state.shader_keys_optimal.key.fs.shadow_needs_shad… in get_shader_module_for_stage_optimal() 313 key = (uint16_t*)&ctx->gfx_pipeline_state.shader_keys_optimal.key.tcs; in get_shader_module_for_stage_optimal() 580 … ctx->dirty_gfx_stages & prog->stages_present, &ctx->gfx_pipeline_state, in update_gfx_program_nonseamless() 584 … ctx->dirty_gfx_stages & prog->stages_present, &ctx->gfx_pipeline_state, in update_gfx_program_nonseamless() 604 memcpy(&ctx->gfx_pipeline_state.shader_keys.key[pstage].key.vs_base, in zink_gfx_program_update() 605 &ctx->gfx_pipeline_state.shader_keys.last_vertex.key.vs_base, in zink_gfx_program_update() 618 ctx->gfx_pipeline_state.final_hash ^= ctx->curr_program->last_variant_hash; in zink_gfx_program_update() [all …]
|
H A D | zink_draw.cpp | 264 VkPipeline prev_pipeline = ctx->gfx_pipeline_state.pipeline; in update_gfx_pipeline() 275 …zink_get_gfx_pipeline<DYNAMIC_STATE, true>(ctx, ctx->curr_program, &ctx->gfx_pipeline_state, mode); in update_gfx_pipeline() 277 …ink_get_gfx_pipeline<DYNAMIC_STATE, false>(ctx, ctx->curr_program, &ctx->gfx_pipeline_state, mode); in update_gfx_pipeline() 297 …VKCTX(CmdSetSampleLocationsEnableEXT)(bs->cmdbuf, ctx->gfx_pipeline_state.sample_locations_enabled… in update_gfx_pipeline() 309 if (ctx->gfx_pipeline_state.shader_rast_prim != MESA_PRIM_COUNT) in zink_prim_type() 310 return ctx->gfx_pipeline_state.shader_rast_prim; in zink_prim_type() 362 bool mode_changed = ctx->gfx_pipeline_state.gfx_prim_mode != dinfo->mode; in zink_draw() 478 if (mode_changed || ctx->gfx_pipeline_state.modules_changed || in zink_draw() 481 if (rast_prim != ctx->gfx_pipeline_state.rast_prim) { in zink_draw() 483 (ctx->gfx_pipeline_state.rast_prim == MESA_PRIM_POINTS) != in zink_draw() [all …]
|
H A D | zink_render_pass.c | 482 ctx->gfx_pipeline_state.rast_samples + 1 : 0; in get_render_pass() 568 struct zink_render_pass *rp = ctx->gfx_pipeline_state.render_pass; in setup_framebuffer() 574 ctx->gfx_pipeline_state.next_render_pass = NULL; in setup_framebuffer() 578 if (ctx->gfx_pipeline_state.render_pass) { in setup_framebuffer() 580 bool must_change = rp_must_change(ctx->gfx_pipeline_state.render_pass, rp, ctx->in_rp); in setup_framebuffer() 584 ctx->gfx_pipeline_state.next_render_pass = rp; in setup_framebuffer() 589 } else if (ctx->gfx_pipeline_state.next_render_pass) { in setup_framebuffer() 592 rp = ctx->gfx_pipeline_state.next_render_pass; in setup_framebuffer() 593 ctx->gfx_pipeline_state.next_render_pass = NULL; in setup_framebuffer() 596 if (rp->pipeline_state != ctx->gfx_pipeline_state.rp_state) { in setup_framebuffer() [all …]
|
H A D | zink_pipeline.c | 902 uint32_t hash = hash_gfx_input_dynamic(&ctx->gfx_pipeline_state.input); in zink_find_or_create_input_dynamic() 903 …et_entry *he = _mesa_set_search_pre_hashed(&ctx->gfx_inputs, hash, &ctx->gfx_pipeline_state.input); in zink_find_or_create_input_dynamic() 906 ikey->idx = ctx->gfx_pipeline_state.idx; in zink_find_or_create_input_dynamic() 907 …ink_create_gfx_pipeline_input(zink_screen(ctx->base.screen), &ctx->gfx_pipeline_state, NULL, vkmod… in zink_find_or_create_input_dynamic() 917 uint32_t hash = hash_gfx_input(&ctx->gfx_pipeline_state.input); in zink_find_or_create_input() 918 …et_entry *he = _mesa_set_search_pre_hashed(&ctx->gfx_inputs, hash, &ctx->gfx_pipeline_state.input); in zink_find_or_create_input() 921 if (ctx->gfx_pipeline_state.uses_dynamic_stride) { in zink_find_or_create_input() 922 …memcpy(ikey, &ctx->gfx_pipeline_state.input, offsetof(struct zink_gfx_input_key, vertex_buffers_en… in zink_find_or_create_input() 923 ikey->element_state = ctx->gfx_pipeline_state.element_state; in zink_find_or_create_input() 925 … memcpy(ikey, &ctx->gfx_pipeline_state.input, offsetof(struct zink_gfx_input_key, pipeline)); in zink_find_or_create_input() [all …]
|
H A D | zink_state.c | 185 struct zink_gfx_pipeline_state *state = &ctx->gfx_pipeline_state; in zink_bind_vertex_elements_state() 415 struct zink_gfx_pipeline_state* state = &zink_context(pctx)->gfx_pipeline_state; in zink_bind_blend_state() 553 struct zink_gfx_pipeline_state *state = &ctx->gfx_pipeline_state; in zink_bind_depth_stencil_alpha_state() 684 bool force_persample_interp = ctx->gfx_pipeline_state.force_persample_interp; in zink_bind_rasterizer_state() 697 …memcpy(&ctx->gfx_pipeline_state.dyn_state3, &ctx->rast_state->hw_state, sizeof(struct zink_rasteri… in zink_bind_rasterizer_state() 699 …ctx->gfx_pipeline_state.dirty |= !zink_screen(pctx->screen)->info.have_EXT_extended_dynamic_state3; in zink_bind_rasterizer_state() 704 ctx->gfx_pipeline_state.dirty = true; in zink_bind_rasterizer_state() 744 if (ctx->gfx_pipeline_state.dyn_state1.front_face != ctx->rast_state->front_face) { in zink_bind_rasterizer_state() 745 ctx->gfx_pipeline_state.dyn_state1.front_face = ctx->rast_state->front_face; in zink_bind_rasterizer_state() 746 … ctx->gfx_pipeline_state.dirty |= !zink_screen(pctx->screen)->info.have_EXT_extended_dynamic_state; in zink_bind_rasterizer_state() [all …]
|
H A D | zink_context.c | 1352 unsigned last_count = util_last_bit(ctx->gfx_pipeline_state.vertex_buffers_enabled_mask); in zink_set_vertex_buffers() 1387 …else if (!have_input_state && ctx->gfx_pipeline_state.vertex_buffers_enabled_mask != enabled_buffe… in zink_set_vertex_buffers() 1389 ctx->gfx_pipeline_state.vertex_buffers_enabled_mask = enabled_buffers; in zink_set_vertex_buffers() 1440 key = &ctx->gfx_pipeline_state.shader_keys.key[shader]; in zink_set_inlinable_constants() 1495 struct zink_shader_key *key = &ctx->gfx_pipeline_state.shader_keys.key[pstage]; in invalidate_inlined_uniforms() 2056 if (ctx->gfx_pipeline_state.feedback_loop_zs) in update_feedback_loop_state() 2057 ctx->gfx_pipeline_state.dirty = true; in update_feedback_loop_state() 2058 ctx->gfx_pipeline_state.feedback_loop_zs = false; in update_feedback_loop_state() 2060 if (ctx->gfx_pipeline_state.feedback_loop) in update_feedback_loop_state() 2061 ctx->gfx_pipeline_state.dirty = true; in update_feedback_loop_state() [all …]
|
H A D | zink_blit.c | 421 VkPipeline pipeline = ctx->gfx_pipeline_state.pipeline; in zink_blit() 478 ctx->gfx_pipeline_state.rp_state = zink_update_rendering_info(ctx); in zink_blit() 484 ctx->gfx_pipeline_state.pipeline = pipeline; in zink_blit() 506 … util_last_bit(ctx->gfx_pipeline_state.vertex_buffers_enabled_mask)); in zink_blit_begin() 518 util_blitter_save_blend(ctx->blitter, ctx->gfx_pipeline_state.blend_state); in zink_blit_begin() 521 …util_blitter_save_sample_mask(ctx->blitter, ctx->gfx_pipeline_state.sample_mask, ctx->gfx_pipeline… in zink_blit_begin()
|
H A D | zink_program_state.hpp | 132 …sanitized.val = zink_sanitize_optimal_key(ctx->gfx_stages, ctx->gfx_pipeline_state.shader_keys_opt… in zink_get_gfx_pipeline() 199 … struct set_entry *he = _mesa_set_search(&prog->libs->libs, &ctx->gfx_pipeline_state.optimal_key); in zink_get_gfx_pipeline() 205 gkey = zink_create_pipeline_lib(screen, prog, &ctx->gfx_pipeline_state); in zink_get_gfx_pipeline()
|
H A D | zink_framebuffer.c | 154 …psurf = zink_get_dummy_pipe_surface(ctx, util_logbase2_ceil(ctx->gfx_pipeline_state.rast_samples+1… in zink_get_framebuffer()
|
H A D | zink_types.h | 1831 struct zink_gfx_pipeline_state gfx_pipeline_state; member
|
/aosp_15_r20/external/mesa3d/src/gallium/drivers/d3d12/ |
H A D | d3d12_compiler.cpp | 242 if (!ctx->gfx_pipeline_state.blend || !ctx->gfx_pipeline_state.blend->is_dual_src) in missing_dual_src_outputs() 340 ctx->gfx_pipeline_state.rast == NULL || in fill_mode_lowered() 346 if (((ctx->gfx_pipeline_state.rast->base.fill_front == PIPE_POLYGON_MODE_LINE && in fill_mode_lowered() 347 ctx->gfx_pipeline_state.rast->base.cull_face != PIPE_FACE_FRONT) || in fill_mode_lowered() 348 (ctx->gfx_pipeline_state.rast->base.fill_back == PIPE_POLYGON_MODE_LINE && in fill_mode_lowered() 349 ctx->gfx_pipeline_state.rast->base.cull_face == PIPE_FACE_FRONT)) && in fill_mode_lowered() 354 if (ctx->gfx_pipeline_state.rast->base.fill_front == PIPE_POLYGON_MODE_POINT) in fill_mode_lowered() 364 for (unsigned i = 0; i < ctx->gfx_pipeline_state.so_info.num_outputs; ++i) { in has_stream_out_for_streams() 365 unsigned stream = ctx->gfx_pipeline_state.so_info.output[i].stream; in has_stream_out_for_streams() 383 ctx->gfx_pipeline_state.rast->base.point_size > 1.0) && in needs_point_sprite_lowering() [all …]
|
H A D | d3d12_draw.cpp | 382 ptr[2] = fui(ctx->gfx_pipeline_state.rast->base.point_size); in fill_graphics_state_vars() 393 cmd_sig_key->root_sig = ctx->gfx_pipeline_state.root_signature; in fill_graphics_state_vars() 616 if (ctx->gfx_pipeline_state.num_so_targets && in validate_stream_output_targets() 617 ctx->gfx_pipeline_state.stages[PIPE_SHADER_GEOMETRY]) in validate_stream_output_targets() 618 factor = ctx->gfx_pipeline_state.stages[PIPE_SHADER_GEOMETRY]->key.gs.stream_output_factor; in validate_stream_output_targets() 859 ctx->transform_state_vars[0] = ctx->gfx_pipeline_state.ves->strides[0]; in update_draw_auto() 918 util_primconvert_save_rasterizer_state(ctx->primconvert, &ctx->gfx_pipeline_state.rast->base); in d3d12_draw_vbo() 950 struct d3d12_rasterizer_state *rast = ctx->gfx_pipeline_state.rast; in d3d12_draw_vbo() 957 if (ctx->pstipple.enabled && ctx->gfx_pipeline_state.rast->base.poly_stipple_enable) in d3d12_draw_vbo() 964 ctx->gfx_pipeline_state.rast->base.cull_face == PIPE_FACE_FRONT_AND_BACK) in d3d12_draw_vbo() [all …]
|
H A D | d3d12_context_graphics.cpp | 111 ctx->gfx_pipeline_state.ves = (struct d3d12_vertex_elements_state *)ve; in d3d12_bind_vertex_elements_state() 338 struct d3d12_blend_state *old_state = ctx->gfx_pipeline_state.blend; in d3d12_bind_blend_state() 340 ctx->gfx_pipeline_state.blend = new_state; in d3d12_bind_blend_state() 444 ctx->gfx_pipeline_state.zsa = (struct d3d12_depth_stencil_alpha_state *) dsa; in d3d12_bind_depth_stencil_alpha_state() 543 ctx->gfx_pipeline_state.rast = (struct d3d12_rasterizer_state *)rs_state; in d3d12_bind_rasterizer_state() 1061 if (ctx->gfx_pipeline_state.stages[stage] == iter) { in delete_shader() 1062 ctx->gfx_pipeline_state.stages[stage] = NULL; in delete_shader() 1322 if (ctx->gfx_pipeline_state.rast && !ctx->gfx_pipeline_state.rast->base.clip_halfz) { in d3d12_set_viewport_states() 1431 ctx->gfx_pipeline_state.num_cbufs = state->nr_cbufs; in d3d12_set_framebuffer_state() 1432 ctx->gfx_pipeline_state.has_float_rtv = false; in d3d12_set_framebuffer_state() [all …]
|
H A D | d3d12_pipeline_state.cpp | 222 DXGI_FORMAT fmt = ctx->gfx_pipeline_state.rtv_formats[index]; in d3d12_rtv_format() 224 if (ctx->gfx_pipeline_state.blend->desc.RenderTarget[0].LogicOpEnable && in d3d12_rtv_format() 225 !ctx->gfx_pipeline_state.has_float_rtv) { in d3d12_rtv_format() 272 struct d3d12_gfx_pipeline_state *state = &ctx->gfx_pipeline_state; in create_gfx_pipeline_state() 430 uint32_t hash = hash_gfx_pipeline_state(&ctx->gfx_pipeline_state); in d3d12_get_gfx_pipeline_state() 432 &ctx->gfx_pipeline_state); in d3d12_get_gfx_pipeline_state() 438 data->key = ctx->gfx_pipeline_state; in d3d12_get_gfx_pipeline_state()
|
H A D | d3d12_blit.cpp | 266 util_blitter_save_blend(ctx->blitter, ctx->gfx_pipeline_state.blend); in util_blit_save_state() 267 util_blitter_save_depth_stencil_alpha(ctx->blitter, ctx->gfx_pipeline_state.zsa); in util_blit_save_state() 268 util_blitter_save_vertex_elements(ctx->blitter, ctx->gfx_pipeline_state.ves); in util_blit_save_state() 270 util_blitter_save_rasterizer(ctx->blitter, ctx->gfx_pipeline_state.rast); in util_blit_save_state() 288 util_blitter_save_sample_mask(ctx->blitter, ctx->gfx_pipeline_state.sample_mask, 0); in util_blit_save_state() 289 …util_blitter_save_so_targets(ctx->blitter, ctx->gfx_pipeline_state.num_so_targets, ctx->so_targets… in util_blit_save_state()
|
H A D | d3d12_context.h | 262 struct d3d12_gfx_pipeline_state gfx_pipeline_state; member
|
H A D | d3d12_root_signature.cpp | 253 ctx->gfx_pipeline_state.stages[i]; in fill_key()
|
H A D | d3d12_context_common.cpp | 424 ctx->gfx_pipeline_state.sample_mask = ~0; in d3d12_context_create()
|
H A D | d3d12_query.cpp | 325 bool has_xfb = !!ctx->gfx_pipeline_state.num_so_targets; in subquery_should_be_active()
|
/aosp_15_r20/external/mesa3d/docs/relnotes/ |
H A 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"
|
H A D | 19.3.0.rst | 943 - zink: pass line width from rast_state to gfx_pipeline_state.
|