Home
last modified time | relevance | path

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

12

/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_pipeline.c108 VkPipelineColorBlendStateCreateInfo blend_state = {0}; in zink_create_gfx_pipeline() local
109 blend_state.sType = VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO; in zink_create_gfx_pipeline()
110 if (state->blend_state) { in zink_create_gfx_pipeline()
118 blend_att[i] = state->blend_state->attachments[i]; in zink_create_gfx_pipeline()
125 blend_state.pAttachments = blend_att; in zink_create_gfx_pipeline()
127 blend_state.pAttachments = state->blend_state->attachments; in zink_create_gfx_pipeline()
128 blend_state.attachmentCount = num_attachments; in zink_create_gfx_pipeline()
129 blend_state.logicOpEnable = state->blend_state->logicop_enable; in zink_create_gfx_pipeline()
130 blend_state.logicOp = state->blend_state->logicop_func; in zink_create_gfx_pipeline()
136 if (state->blend_state) { in zink_create_gfx_pipeline()
[all …]
Dzink_state.c349 const struct pipe_blend_state *blend_state) in zink_create_blend_state() argument
356 if (blend_state->logicop_enable) { in zink_create_blend_state()
358 cso->logicop_func = logic_op(blend_state->logicop_func); in zink_create_blend_state()
368 cso->alpha_to_coverage = blend_state->alpha_to_coverage; in zink_create_blend_state()
369 cso->alpha_to_one = blend_state->alpha_to_one; in zink_create_blend_state()
373 for (int i = 0; i < blend_state->max_rt + 1; ++i) { in zink_create_blend_state()
374 const struct pipe_rt_blend_state *rt = blend_state->rt; in zink_create_blend_state()
375 if (blend_state->independent_blend_enable) in zink_create_blend_state()
376 rt = blend_state->rt + i; in zink_create_blend_state()
407 cso->dual_src_blend = util_blend_state_is_dual(blend_state, 0); in zink_create_blend_state()
[all …]
Dzink_pipeline.h93 struct zink_blend_state *blend_state; member
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_vX_shader.c98 struct pan_blend_state *blend_state, in panvk_lower_blend() argument
102 .logicop_enable = blend_state->logicop_enable, in panvk_lower_blend()
103 .logicop_func = blend_state->logicop_func, in panvk_lower_blend()
108 for (unsigned rt = 0; rt < blend_state->rt_count; rt++) { in panvk_lower_blend()
109 struct pan_blend_rt_state *rt_state = &blend_state->rts[rt]; in panvk_lower_blend()
111 if (!panvk_per_arch(blend_needs_lowering)(pdev, blend_state, rt)) in panvk_lower_blend()
167 { .f32 = CLAMP(blend_state->constants[0], 0.0f, 1.0f) }, in panvk_lower_blend()
168 { .f32 = CLAMP(blend_state->constants[1], 0.0f, 1.0f) }, in panvk_lower_blend()
169 { .f32 = CLAMP(blend_state->constants[2], 0.0f, 1.0f) }, in panvk_lower_blend()
170 { .f32 = CLAMP(blend_state->constants[3], 0.0f, 1.0f) }, in panvk_lower_blend()
[all …]
Dpanvk_private.h828 struct pan_blend_state *blend_state,
1134 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.c360 const struct pipe_blend_state *blend_state) in virgl_encode_blend_state() argument
369 VIRGL_OBJ_BLEND_S0_INDEPENDENT_BLEND_ENABLE(blend_state->independent_blend_enable) | in virgl_encode_blend_state()
370 VIRGL_OBJ_BLEND_S0_LOGICOP_ENABLE(blend_state->logicop_enable) | in virgl_encode_blend_state()
371 VIRGL_OBJ_BLEND_S0_DITHER(blend_state->dither) | in virgl_encode_blend_state()
372 VIRGL_OBJ_BLEND_S0_ALPHA_TO_COVERAGE(blend_state->alpha_to_coverage) | in virgl_encode_blend_state()
373 VIRGL_OBJ_BLEND_S0_ALPHA_TO_ONE(blend_state->alpha_to_one); in virgl_encode_blend_state()
377 tmp = VIRGL_OBJ_BLEND_S1_LOGICOP_FUNC(blend_state->logicop_func); in virgl_encode_blend_state()
384 uint32_t alpha = (i == 0 && blend_state->advanced_blend_func) in virgl_encode_blend_state()
385 ? blend_state->advanced_blend_func in virgl_encode_blend_state()
386 : blend_state->rt[i].alpha_src_factor; in virgl_encode_blend_state()
[all …]
Dvirgl_context.c402 const struct pipe_blend_state *blend_state) in virgl_create_blend_state() argument
408 virgl_encode_blend_state(vctx, handle, blend_state); in virgl_create_blend_state()
414 void *blend_state) in virgl_bind_blend_state() argument
417 uint32_t handle = (unsigned long)blend_state; in virgl_bind_blend_state()
422 void *blend_state) in virgl_delete_blend_state() argument
425 uint32_t handle = (unsigned long)blend_state; in virgl_delete_blend_state()
430 … const struct pipe_depth_stencil_alpha_state *blend_state) in virgl_create_depth_stencil_alpha_state() argument
436 virgl_encode_dsa_state(vctx, handle, blend_state); in virgl_create_depth_stencil_alpha_state()
441 void *blend_state) in virgl_bind_depth_stencil_alpha_state() argument
444 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.c99 struct pipe_blend_state blend_state; member
410 mask |= state->blend_state.rt[att].colormask << (att * 4); in emit_state()
411 state->blend_state.rt[att].colormask = 0; in emit_state()
414 cso_set_blend(state->cso, &state->blend_state); in emit_state()
419 state->blend_state.rt[att].colormask = (mask >> (att * 4)) & att_mask; in emit_state()
800 state->blend_state.logicop_enable = ps->cb->logic_op_enable; in handle_graphics_pipeline()
803 state->blend_state.logicop_func = vk_conv_logic_op(ps->cb->logic_op); in handle_graphics_pipeline()
809 state->blend_state.independent_blend_enable = (ps->cb->attachment_count > 1); in handle_graphics_pipeline()
813 state->blend_state.rt[i].colormask = att->write_mask; in handle_graphics_pipeline()
814 state->blend_state.rt[i].blend_enable = att->blend_enable; in handle_graphics_pipeline()
[all …]
/third_party/mesa3d/src/amd/vulkan/
Dradv_meta_fast_clear.c206 const VkPipelineColorBlendStateCreateInfo blend_state = { in create_pipeline() local
259 .pColorBlendState = &blend_state, in create_pipeline()
309 .pColorBlendState = &blend_state, in create_pipeline()
359 .pColorBlendState = &blend_state, in create_pipeline()
/third_party/mesa3d/src/gallium/frontends/va/
Dpostproc.c164 if (param->blend_state != NULL) { in vlVaVidEngineBlit()
165 if (param->blend_state->flags & VA_BLEND_GLOBAL_ALPHA) { in vlVaVidEngineBlit()
167 context->desc.vidproc.blend.global_alpha = param->blend_state->global_alpha; in vlVaVidEngineBlit()
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/d3d12/
Dd3d12_context.cpp328 const struct pipe_blend_state *blend_state) in d3d12_create_blend_state() argument
334 if (blend_state->logicop_enable) { in d3d12_create_blend_state()
336 state->desc.RenderTarget[0].LogicOp = logic_op((pipe_logicop) blend_state->logicop_func); in d3d12_create_blend_state()
341 state->desc.AlphaToCoverageEnable = blend_state->alpha_to_coverage; in d3d12_create_blend_state()
344 if (blend_state->independent_blend_enable) { in d3d12_create_blend_state()
350 const struct pipe_rt_blend_state *rt = blend_state->rt + i; in d3d12_create_blend_state()
372 if (util_blend_state_is_dual(blend_state, i)) in d3d12_create_blend_state()
383 d3d12_bind_blend_state(struct pipe_context *pctx, void *blend_state) in d3d12_bind_blend_state() argument
386 struct d3d12_blend_state *new_state = (struct d3d12_blend_state *) blend_state; in d3d12_bind_blend_state()
397 d3d12_delete_blend_state(struct pipe_context *pctx, void *blend_state) in d3d12_delete_blend_state() argument
[all …]
/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/intel/vulkan/
DgenX_pipeline.c1007 struct GENX(BLEND_STATE) blend_state = { in emit_cb_state()
1023 pipeline->gfx8.blend_state : pipeline->gfx7.blend_state; in emit_cb_state()
1086 blend_state.IndependentAlphaBlendEnable = true; in emit_cb_state()
1142 blend.AlphaToCoverageEnable = blend_state.AlphaToCoverageEnable; in emit_cb_state()
1149 blend.IndependentAlphaBlendEnable = blend_state.IndependentAlphaBlendEnable; in emit_cb_state()
1154 GENX(BLEND_STATE_pack)(NULL, blend_state_start, &blend_state); in emit_cb_state()
Dgfx7_cmd_buffer.c298 pipeline->gfx7.blend_state, num_dwords, 64); in genX()
/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.c199 r600_set_cso_state_with_cb(rctx, &rctx->blend_state, blend, &blend->buffer); in r600_bind_blend_state_internal()
203 r600_set_cso_state_with_cb(rctx, &rctx->blend_state, blend, &blend->buffer_no_blend); in r600_bind_blend_state_internal()
236 r600_set_cso_state_with_cb(rctx, &rctx->blend_state, NULL, NULL); in r600_bind_blend_state()
526 if (rctx->blend_state.cso == state) { in r600_delete_blend_state()
2100 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.c183 R300_INIT_ATOM(blend_state, 8); in r300_setup_atoms()
/third_party/mesa3d/src/panfrost/lib/
Dpan_blitter.c337 struct pan_blend_state blend_state = { in pan_blitter_get_blend_shaders() local
366 blend_state.rts[i] = (struct pan_blend_rt_state) { in pan_blitter_get_blend_shaders()
385 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.c386 trace_dump_arg(blend_state, state); in trace_context_create_blend_state()
417 trace_dump_arg(blend_state, he->data); in trace_context_bind_blend_state()
419 trace_dump_arg(blend_state, NULL); in trace_context_bind_blend_state()

12