Home
last modified time | relevance | path

Searched refs:blend_state (Results 1 – 25 of 41) sorted by relevance

12

/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_pipeline.c95 VkPipelineColorBlendStateCreateInfo blend_state = {0}; in zink_create_gfx_pipeline() local
96 blend_state.sType = VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO; in zink_create_gfx_pipeline()
97 if (state->blend_state) { in zink_create_gfx_pipeline()
103 blend_att[i] = state->blend_state->attachments[i]; in zink_create_gfx_pipeline()
110 blend_state.pAttachments = blend_att; in zink_create_gfx_pipeline()
112 blend_state.pAttachments = state->blend_state->attachments; in zink_create_gfx_pipeline()
113 blend_state.attachmentCount = num_attachments; in zink_create_gfx_pipeline()
114 blend_state.logicOpEnable = state->blend_state->logicop_enable; in zink_create_gfx_pipeline()
115 blend_state.logicOp = state->blend_state->logicop_func; in zink_create_gfx_pipeline()
121 if (state->blend_state) { in zink_create_gfx_pipeline()
[all …]
Dzink_state.c344 const struct pipe_blend_state *blend_state) in zink_create_blend_state() argument
351 if (blend_state->logicop_enable) { in zink_create_blend_state()
353 cso->logicop_func = logic_op(blend_state->logicop_func); in zink_create_blend_state()
363 cso->alpha_to_coverage = blend_state->alpha_to_coverage; in zink_create_blend_state()
364 cso->alpha_to_one = blend_state->alpha_to_one; in zink_create_blend_state()
368 for (int i = 0; i < blend_state->max_rt + 1; ++i) { in zink_create_blend_state()
369 const struct pipe_rt_blend_state *rt = blend_state->rt; in zink_create_blend_state()
370 if (blend_state->independent_blend_enable) in zink_create_blend_state()
371 rt = blend_state->rt + i; in zink_create_blend_state()
402 cso->dual_src_blend = util_blend_state_is_dual(blend_state, 0); in zink_create_blend_state()
[all …]
Dzink_pipeline.h83 struct zink_blend_state *blend_state; member
Dzink_blit.c329 util_blitter_save_blend(ctx->blitter, ctx->gfx_pipeline_state.blend_state); in zink_blit_begin()
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_vX_shader.c315 struct pan_blend_state *blend_state, in panvk_lower_blend() argument
319 .logicop_enable = blend_state->logicop_enable, in panvk_lower_blend()
320 .logicop_func = blend_state->logicop_func, in panvk_lower_blend()
328 for (unsigned rt = 0; rt < blend_state->rt_count; rt++) { in panvk_lower_blend()
329 struct pan_blend_rt_state *rt_state = &blend_state->rts[rt]; in panvk_lower_blend()
331 if (!panvk_per_arch(blend_needs_lowering)(pdev, blend_state, rt)) in panvk_lower_blend()
422 { .f32 = CLAMP(blend_state->constants[0], 0.0f, 1.0f) }, in panvk_lower_blend()
423 { .f32 = CLAMP(blend_state->constants[1], 0.0f, 1.0f) }, in panvk_lower_blend()
424 { .f32 = CLAMP(blend_state->constants[2], 0.0f, 1.0f) }, in panvk_lower_blend()
425 { .f32 = CLAMP(blend_state->constants[3], 0.0f, 1.0f) }, in panvk_lower_blend()
[all …]
Dpanvk_private.h723 struct pan_blend_state *blend_state,
1089 struct pan_blend_state *blend_state,
/third_party/mesa3d/src/gallium/frontends/vdpau/
Doutput.c596 VdpOutputSurfaceRenderBlendState const *blend_state) in BlenderToPipe() argument
603 if (blend_state) { in BlenderToPipe()
605 blend.rt[0].rgb_src_factor = BlendFactorToPipe(blend_state->blend_factor_source_color); in BlenderToPipe()
606 blend.rt[0].rgb_dst_factor = BlendFactorToPipe(blend_state->blend_factor_destination_color); in BlenderToPipe()
607 blend.rt[0].alpha_src_factor = BlendFactorToPipe(blend_state->blend_factor_source_alpha); in BlenderToPipe()
608 blend.rt[0].alpha_dst_factor = BlendFactorToPipe(blend_state->blend_factor_destination_alpha); in BlenderToPipe()
609 blend.rt[0].rgb_func = BlendEquationToPipe(blend_state->blend_equation_color); in BlenderToPipe()
610 blend.rt[0].alpha_func = BlendEquationToPipe(blend_state->blend_equation_alpha); in BlenderToPipe()
655 VdpOutputSurfaceRenderBlendState const *blend_state, in vlVdpOutputSurfaceRenderOutputSurface() argument
694 blend = BlenderToPipe(context, blend_state); in vlVdpOutputSurfaceRenderOutputSurface()
[all …]
/third_party/skia/third_party/externals/imgui/backends/
Dimgui_impl_wgpu.cpp585 WGPUBlendState blend_state = {}; in ImGui_ImplWGPU_CreateDeviceObjects() local
586 blend_state.alpha.operation = WGPUBlendOperation_Add; in ImGui_ImplWGPU_CreateDeviceObjects()
587 blend_state.alpha.srcFactor = WGPUBlendFactor_One; in ImGui_ImplWGPU_CreateDeviceObjects()
588 blend_state.alpha.dstFactor = WGPUBlendFactor_OneMinusSrcAlpha; in ImGui_ImplWGPU_CreateDeviceObjects()
589 blend_state.color.operation = WGPUBlendOperation_Add; in ImGui_ImplWGPU_CreateDeviceObjects()
590 blend_state.color.srcFactor = WGPUBlendFactor_SrcAlpha; in ImGui_ImplWGPU_CreateDeviceObjects()
591 blend_state.color.dstFactor = WGPUBlendFactor_OneMinusSrcAlpha; in ImGui_ImplWGPU_CreateDeviceObjects()
595 color_state.blend = &blend_state; in ImGui_ImplWGPU_CreateDeviceObjects()
/third_party/mesa3d/src/gallium/drivers/virgl/
Dvirgl_encode.c350 const struct pipe_blend_state *blend_state) in virgl_encode_blend_state() argument
359 VIRGL_OBJ_BLEND_S0_INDEPENDENT_BLEND_ENABLE(blend_state->independent_blend_enable) | in virgl_encode_blend_state()
360 VIRGL_OBJ_BLEND_S0_LOGICOP_ENABLE(blend_state->logicop_enable) | in virgl_encode_blend_state()
361 VIRGL_OBJ_BLEND_S0_DITHER(blend_state->dither) | in virgl_encode_blend_state()
362 VIRGL_OBJ_BLEND_S0_ALPHA_TO_COVERAGE(blend_state->alpha_to_coverage) | in virgl_encode_blend_state()
363 VIRGL_OBJ_BLEND_S0_ALPHA_TO_ONE(blend_state->alpha_to_one); in virgl_encode_blend_state()
367 tmp = VIRGL_OBJ_BLEND_S1_LOGICOP_FUNC(blend_state->logicop_func); in virgl_encode_blend_state()
374 uint32_t alpha = (i == 0 && blend_state->advanced_blend_func) in virgl_encode_blend_state()
375 ? blend_state->advanced_blend_func in virgl_encode_blend_state()
376 : blend_state->rt[i].alpha_src_factor; in virgl_encode_blend_state()
[all …]
Dvirgl_context.c406 const struct pipe_blend_state *blend_state) in virgl_create_blend_state() argument
412 virgl_encode_blend_state(vctx, handle, blend_state); in virgl_create_blend_state()
418 void *blend_state) in virgl_bind_blend_state() argument
421 uint32_t handle = (unsigned long)blend_state; in virgl_bind_blend_state()
426 void *blend_state) in virgl_delete_blend_state() argument
429 uint32_t handle = (unsigned long)blend_state; in virgl_delete_blend_state()
434 … const struct pipe_depth_stencil_alpha_state *blend_state) in virgl_create_depth_stencil_alpha_state() argument
440 virgl_encode_dsa_state(vctx, handle, blend_state); in virgl_create_depth_stencil_alpha_state()
445 void *blend_state) in virgl_bind_depth_stencil_alpha_state() argument
448 uint32_t handle = (unsigned long)blend_state; in virgl_bind_depth_stencil_alpha_state()
Dvirgl_encode.h86 const struct pipe_blend_state *blend_state);
/third_party/mesa3d/src/gallium/frontends/lavapipe/
Dlvp_execute.c83 struct pipe_blend_state blend_state; member
233 mask |= state->blend_state.rt[att].colormask << (att * 4); in emit_state()
234 state->blend_state.rt[att].colormask = 0; in emit_state()
237 cso_set_blend(state->cso, &state->blend_state); in emit_state()
242 state->blend_state.rt[att].colormask = (mask >> (att * 4)) & att_mask; in emit_state()
581 state->blend_state.alpha_to_coverage = ms->alphaToCoverageEnable; in handle_graphics_pipeline()
582 state->blend_state.alpha_to_one = ms->alphaToOneEnable; in handle_graphics_pipeline()
604 state->blend_dirty |= state->blend_state.alpha_to_coverage || state->blend_state.alpha_to_one; in handle_graphics_pipeline()
605 state->blend_state.alpha_to_coverage = false; in handle_graphics_pipeline()
606 state->blend_state.alpha_to_one = false; in handle_graphics_pipeline()
[all …]
/third_party/mesa3d/src/gallium/drivers/d3d12/
Dd3d12_context.cpp303 const struct pipe_blend_state *blend_state) in d3d12_create_blend_state() argument
309 if (blend_state->logicop_enable) { in d3d12_create_blend_state()
311 state->desc.RenderTarget[0].LogicOp = logic_op((pipe_logicop) blend_state->logicop_func); in d3d12_create_blend_state()
316 state->desc.AlphaToCoverageEnable = blend_state->alpha_to_coverage; in d3d12_create_blend_state()
319 if (blend_state->independent_blend_enable) { in d3d12_create_blend_state()
325 const struct pipe_rt_blend_state *rt = blend_state->rt + i; in d3d12_create_blend_state()
347 if (util_blend_state_is_dual(blend_state, i)) in d3d12_create_blend_state()
358 d3d12_bind_blend_state(struct pipe_context *pctx, void *blend_state) in d3d12_bind_blend_state() argument
361 struct d3d12_blend_state *new_state = (struct d3d12_blend_state *) blend_state; in d3d12_bind_blend_state()
372 d3d12_delete_blend_state(struct pipe_context *pctx, void *blend_state) in d3d12_delete_blend_state() argument
[all …]
/third_party/mesa3d/src/amd/vulkan/
Dradv_meta_fast_clear.c279 const VkPipelineColorBlendStateCreateInfo blend_state = { in create_pipeline() local
324 .pColorBlendState = &blend_state, in create_pipeline()
373 .pColorBlendState = &blend_state, in create_pipeline()
422 .pColorBlendState = &blend_state, in create_pipeline()
/third_party/mesa3d/src/intel/vulkan/
DgenX_pipeline.c1213 struct GENX(BLEND_STATE) blend_state = {
1235 pipeline->gfx8.blend_state : pipeline->gfx7.blend_state;
1236 pipeline->blend_state = ANV_STATE_NULL;
1238 pipeline->blend_state =
1240 blend_state_start = pipeline->blend_state.map;
1316 blend_state.IndependentAlphaBlendEnable = true;
1375 blend.AlphaToCoverageEnable = blend_state.AlphaToCoverageEnable;
1383 blend.IndependentAlphaBlendEnable = blend_state.IndependentAlphaBlendEnable;
1396 GENX(BLEND_STATE_pack)(NULL, blend_state_start, &blend_state);
1401 bsp.BlendStatePointer = pipeline->blend_state.offset;
Dgfx7_cmd_buffer.c462 pipeline->gfx7.blend_state, num_dwords, 64); in genX()
/third_party/gstreamer/gstplugins_bad/sys/d3d11/
Dgstd3d11shader.cpp357 ID3D11BlendState *blend_state = blend; in gst_d3d11_draw_quad_unlocked() local
387 context->OMSetBlendState (blend_state, blend_factor, 0xffffffff); in gst_d3d11_draw_quad_unlocked()
/third_party/mesa3d/src/gallium/frontends/nine/
Dnine_pipe.c161 nine_convert_blend_state(struct pipe_blend_state *blend_state, const DWORD *rs) in nine_convert_blend_state() argument
207 *blend_state = blend; in nine_convert_blend_state()
/third_party/mesa3d/src/gallium/frontends/va/
Dsurface.c228 void *blend_state; in vlVaPutSubpictures() local
288 blend_state = drv->pipe->create_blend_state(drv->pipe, &blend); in vlVaPutSubpictures()
291 vl_compositor_set_layer_blend(&drv->cstate, 0, blend_state, false); in vlVaPutSubpictures()
298 drv->pipe->delete_blend_state(drv->pipe, blend_state); in vlVaPutSubpictures()
/third_party/mesa3d/src/gallium/drivers/r600/
Dr600_hw_context.c393 if (ctx->blend_state.cso) in r600_begin_new_cs()
394 r600_mark_atom_dirty(ctx, &ctx->blend_state.atom); in r600_begin_new_cs()
Dr600_state_common.c198 r600_set_cso_state_with_cb(rctx, &rctx->blend_state, blend, &blend->buffer); in r600_bind_blend_state_internal()
202 r600_set_cso_state_with_cb(rctx, &rctx->blend_state, blend, &blend->buffer_no_blend); in r600_bind_blend_state_internal()
235 r600_set_cso_state_with_cb(rctx, &rctx->blend_state, NULL, NULL); in r600_bind_blend_state()
522 if (rctx->blend_state.cso == state) { in r600_delete_blend_state()
2034 rctx->blend_state.cso, in r600_update_derived_state()
/third_party/mesa3d/src/gallium/drivers/r300/
Dr300_context.h508 struct r300_atom blend_state; member
Dr300_context.c184 R300_INIT_ATOM(blend_state, 8); in r300_setup_atoms()
/third_party/mesa3d/src/panfrost/lib/
Dpan_blitter.c327 struct pan_blend_state blend_state = { in pan_blitter_get_blend_shaders() local
356 blend_state.rts[i] = (struct pan_blend_rt_state) { in pan_blitter_get_blend_shaders()
375 GENX(pan_blend_get_shader_locked)(dev, &blend_state, in pan_blitter_get_blend_shaders()
/third_party/mesa3d/src/gallium/auxiliary/driver_trace/
Dtr_context.c351 trace_dump_arg(blend_state, state); in trace_context_create_blend_state()
382 trace_dump_arg(blend_state, he->data); in trace_context_bind_blend_state()
384 trace_dump_arg(blend_state, NULL); in trace_context_bind_blend_state()

12