Home
last modified time | relevance | path

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

123

/external/mesa3d/src/gallium/drivers/zink/
Dzink_pipeline.c101 VkPipelineColorBlendStateCreateInfo blend_state = {0}; in zink_create_gfx_pipeline() local
102 blend_state.sType = VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO; in zink_create_gfx_pipeline()
103 if (state->blend_state) { in zink_create_gfx_pipeline()
109 blend_state.pAttachments = state->blend_state->attachments; in zink_create_gfx_pipeline()
110 blend_state.attachmentCount = num_attachments; in zink_create_gfx_pipeline()
111 blend_state.logicOpEnable = state->blend_state->logicop_enable; in zink_create_gfx_pipeline()
112 blend_state.logicOp = state->blend_state->logicop_func; in zink_create_gfx_pipeline()
115blend_state.flags |= VK_PIPELINE_COLOR_BLEND_STATE_CREATE_RASTERIZATION_ORDER_ATTACHMENT_ACCESS_BI… in zink_create_gfx_pipeline()
120 if (state->blend_state) { in zink_create_gfx_pipeline()
121 ms_state.alphaToCoverageEnable = state->blend_state->alpha_to_coverage; in zink_create_gfx_pipeline()
[all …]
Dzink_state.c341 const struct pipe_blend_state *blend_state) in zink_create_blend_state() argument
348 if (blend_state->logicop_enable) { in zink_create_blend_state()
350 cso->logicop_func = logic_op(blend_state->logicop_func); in zink_create_blend_state()
360 cso->alpha_to_coverage = blend_state->alpha_to_coverage; in zink_create_blend_state()
361 cso->alpha_to_one = blend_state->alpha_to_one; in zink_create_blend_state()
362 cso->num_rts = blend_state->max_rt + 1; in zink_create_blend_state()
364 for (int i = 0; i < blend_state->max_rt + 1; ++i) { in zink_create_blend_state()
365 const struct pipe_rt_blend_state *rt = blend_state->rt; in zink_create_blend_state()
366 if (blend_state->independent_blend_enable) in zink_create_blend_state()
367 rt = blend_state->rt + i; in zink_create_blend_state()
[all …]
Dzink_draw.cpp666 if (ctx->gfx_pipeline_state.blend_state) { in zink_draw()
668 …VKCTX(CmdSetAlphaToCoverageEnableEXT)(bs->cmdbuf, ctx->gfx_pipeline_state.blend_state->alpha_to_co… in zink_draw()
671 … VKCTX(CmdSetAlphaToOneEnableEXT)(bs->cmdbuf, ctx->gfx_pipeline_state.blend_state->alpha_to_one); in zink_draw()
674 …nableEXT)(bs->cmdbuf, 0, ctx->fb_state.nr_cbufs, ctx->gfx_pipeline_state.blend_state->ds3.enables); in zink_draw()
676 …teMaskEXT)(bs->cmdbuf, 0, ctx->fb_state.nr_cbufs, ctx->gfx_pipeline_state.blend_state->ds3.wrmask); in zink_draw()
678 …ndEquationEXT)(bs->cmdbuf, 0, ctx->fb_state.nr_cbufs, ctx->gfx_pipeline_state.blend_state->ds3.eq); in zink_draw()
681 … VKCTX(CmdSetLogicOpEnableEXT)(bs->cmdbuf, ctx->gfx_pipeline_state.blend_state->logicop_enable); in zink_draw()
683 VKCTX(CmdSetLogicOpEXT)(bs->cmdbuf, ctx->gfx_pipeline_state.blend_state->logicop_func); in zink_draw()
/external/cronet/tot/third_party/rust/chromium_crates_io/vendor/read-fonts-0.23.2/src/tables/postscript/
Dcharstring.rs60 blend_state: Option<BlendState>, in evaluate()
63 let mut evaluator = Evaluator::new(global_subrs, subrs, blend_state, sink); in evaluate()
73 blend_state: Option<BlendState<'a>>, field
91 blend_state: Option<BlendState<'a>>, in new()
97 blend_state, in new()
182 let blend_state = self.blend_state.as_mut().ok_or(Error::MissingBlendState)?; in evaluate_operator() localVariable
184 blend_state.set_store_index(store_index)?; in evaluate_operator()
189 let blend_state = self.blend_state.as_ref().ok_or(Error::MissingBlendState)?; in evaluate_operator() localVariable
190 self.stack.apply_blend(blend_state)?; in evaluate_operator()
704 let blend_state = BlendState::new(store, coords, 0).unwrap(); in cff2_example_subr() localVariable
[all …]
Dstack.rs246 pub fn apply_blend(&mut self, blend_state: &BlendState) -> Result<(), Error> { in apply_blend()
266 let region_count = blend_state.region_count()?; in apply_blend()
291 for (region_ix, maybe_scalar) in blend_state.scalars()?.enumerate() { in apply_blend()
447 let blend_state = BlendState::new(ivs, coords, 0).unwrap(); in blend() localVariable
460 stack.apply_blend(&blend_state).unwrap(); in blend()
Ddict.rs275 mut blend_state: Option<BlendState<'a>>, in entries()
291 let state = match blend_state.as_mut() { in entries()
640 let blend_state = BlendState::new(store, coords, 0).unwrap(); in example_private_dict_entries() localVariable
641 let entries: Vec<_> = entries(private_dict_data, Some(blend_state)) in example_private_dict_entries()
/external/cronet/stable/third_party/rust/chromium_crates_io/vendor/read-fonts-0.23.2/src/tables/postscript/
Dcharstring.rs60 blend_state: Option<BlendState>, in evaluate()
63 let mut evaluator = Evaluator::new(global_subrs, subrs, blend_state, sink); in evaluate()
73 blend_state: Option<BlendState<'a>>, field
91 blend_state: Option<BlendState<'a>>, in new()
97 blend_state, in new()
182 let blend_state = self.blend_state.as_mut().ok_or(Error::MissingBlendState)?; in evaluate_operator() localVariable
184 blend_state.set_store_index(store_index)?; in evaluate_operator()
189 let blend_state = self.blend_state.as_ref().ok_or(Error::MissingBlendState)?; in evaluate_operator() localVariable
190 self.stack.apply_blend(blend_state)?; in evaluate_operator()
704 let blend_state = BlendState::new(store, coords, 0).unwrap(); in cff2_example_subr() localVariable
[all …]
Dstack.rs246 pub fn apply_blend(&mut self, blend_state: &BlendState) -> Result<(), Error> { in apply_blend()
266 let region_count = blend_state.region_count()?; in apply_blend()
291 for (region_ix, maybe_scalar) in blend_state.scalars()?.enumerate() { in apply_blend()
447 let blend_state = BlendState::new(ivs, coords, 0).unwrap(); in blend() localVariable
460 stack.apply_blend(&blend_state).unwrap(); in blend()
Ddict.rs275 mut blend_state: Option<BlendState<'a>>, in entries()
291 let state = match blend_state.as_mut() { in entries()
640 let blend_state = BlendState::new(store, coords, 0).unwrap(); in example_private_dict_entries() localVariable
641 let entries: Vec<_> = entries(private_dict_data, Some(blend_state)) in example_private_dict_entries()
/external/mesa3d/src/gallium/frontends/vdpau/
Doutput.c595 VdpOutputSurfaceRenderBlendState const *blend_state) in BlenderToPipe() argument
602 if (blend_state) { in BlenderToPipe()
604 blend.rt[0].rgb_src_factor = BlendFactorToPipe(blend_state->blend_factor_source_color); in BlenderToPipe()
605 blend.rt[0].rgb_dst_factor = BlendFactorToPipe(blend_state->blend_factor_destination_color); in BlenderToPipe()
606 blend.rt[0].alpha_src_factor = BlendFactorToPipe(blend_state->blend_factor_source_alpha); in BlenderToPipe()
607 blend.rt[0].alpha_dst_factor = BlendFactorToPipe(blend_state->blend_factor_destination_alpha); in BlenderToPipe()
608 blend.rt[0].rgb_func = BlendEquationToPipe(blend_state->blend_equation_color); in BlenderToPipe()
609 blend.rt[0].alpha_func = BlendEquationToPipe(blend_state->blend_equation_alpha); in BlenderToPipe()
654 VdpOutputSurfaceRenderBlendState const *blend_state, in vlVdpOutputSurfaceRenderOutputSurface() argument
693 blend = BlenderToPipe(context, blend_state); in vlVdpOutputSurfaceRenderOutputSurface()
[all …]
/external/virglrenderer/tests/
Dtestvirgl_encode.c75 const struct pipe_blend_state *blend_state) in virgl_encode_blend_state() argument
84 VIRGL_OBJ_BLEND_S0_INDEPENDENT_BLEND_ENABLE(blend_state->independent_blend_enable) | in virgl_encode_blend_state()
85 VIRGL_OBJ_BLEND_S0_LOGICOP_ENABLE(blend_state->logicop_enable) | in virgl_encode_blend_state()
86 VIRGL_OBJ_BLEND_S0_DITHER(blend_state->dither) | in virgl_encode_blend_state()
87 VIRGL_OBJ_BLEND_S0_ALPHA_TO_COVERAGE(blend_state->alpha_to_coverage) | in virgl_encode_blend_state()
88 VIRGL_OBJ_BLEND_S0_ALPHA_TO_ONE(blend_state->alpha_to_one); in virgl_encode_blend_state()
92 tmp = VIRGL_OBJ_BLEND_S1_LOGICOP_FUNC(blend_state->logicop_func); in virgl_encode_blend_state()
97 VIRGL_OBJ_BLEND_S2_RT_BLEND_ENABLE(blend_state->rt[i].blend_enable) | in virgl_encode_blend_state()
98 VIRGL_OBJ_BLEND_S2_RT_RGB_FUNC(blend_state->rt[i].rgb_func) | in virgl_encode_blend_state()
99 VIRGL_OBJ_BLEND_S2_RT_RGB_SRC_FACTOR(blend_state->rt[i].rgb_src_factor) | in virgl_encode_blend_state()
[all …]
/external/igt-gpu-tools/lib/
Drendercopy_gen7.c273 gen7_emit_cc(struct intel_batchbuffer *batch, uint32_t blend_state, in gen7_emit_cc() argument
277 OUT_BATCH(blend_state); in gen7_emit_cc()
512 uint32_t blend_state, cc_viewport; in gen7_render_copyfunc() local
522 blend_state = gen7_create_blend_state(batch); in gen7_render_copyfunc()
551 gen7_emit_cc(batch, blend_state, cc_viewport); in gen7_render_copyfunc()
/external/intel-media-driver/media_softlet/linux/common/vp/ddi/
Dddi_vp_tools.cpp538 if (pipelineParameterBuffer->blend_state) in VpDumpProcPipelineParams()
541 fprintf(fpLog, "\t flags = %d\n", pipelineParameterBuffer->blend_state->flags); in VpDumpProcPipelineParams()
542 … fprintf(fpLog, "\t global_alpha = %f\n", pipelineParameterBuffer->blend_state->global_alpha); in VpDumpProcPipelineParams()
543 … fprintf(fpLog, "\t min_luma = %f\n", pipelineParameterBuffer->blend_state->min_luma); in VpDumpProcPipelineParams()
544 … fprintf(fpLog, "\t max_luma = %f\n", pipelineParameterBuffer->blend_state->max_luma); in VpDumpProcPipelineParams()
/external/mesa3d/src/gallium/frontends/lavapipe/
Dlvp_execute.c118 struct pipe_blend_state blend_state; member
461 mask |= state->blend_state.rt[att].colormask << (att * 4); in emit_state()
462 state->blend_state.rt[att].colormask = 0; in emit_state()
466 struct pipe_blend_state blend = state->blend_state; in emit_state()
469 blend.rt[state->fb_map[i]] = state->blend_state.rt[i]; in emit_state()
474 cso_set_blend(state->cso, &state->blend_state); in emit_state()
480 state->blend_state.rt[att].colormask = (mask >> (att * 4)) & att_mask; in emit_state()
937 state->blend_state.logicop_enable = ps->cb->logic_op_enable; in handle_graphics_pipeline()
939 state->blend_state.logicop_func = vk_logic_op_to_pipe(ps->cb->logic_op); in handle_graphics_pipeline()
947 state->blend_state.rt[i].colormask = att->write_mask; in handle_graphics_pipeline()
[all …]
/external/virglrenderer/src/
Dvrend_decode.c458 struct pipe_blend_state *blend_state; in vrend_decode_create_blend() local
466 blend_state = CALLOC_STRUCT(pipe_blend_state); in vrend_decode_create_blend()
467 if (!blend_state) in vrend_decode_create_blend()
471 blend_state->independent_blend_enable = (tmp & 1); in vrend_decode_create_blend()
472 blend_state->logicop_enable = (tmp >> 1) & 0x1; in vrend_decode_create_blend()
473 blend_state->dither = (tmp >> 2) & 0x1; in vrend_decode_create_blend()
474 blend_state->alpha_to_coverage = (tmp >> 3) & 0x1; in vrend_decode_create_blend()
475 blend_state->alpha_to_one = (tmp >> 4) & 0x1; in vrend_decode_create_blend()
478 blend_state->logicop_func = tmp & 0xf; in vrend_decode_create_blend()
482 blend_state->rt[i].blend_enable = tmp & 0x1; in vrend_decode_create_blend()
[all …]
/external/cronet/stable/third_party/rust/chromium_crates_io/vendor/skrifa-0.24.1/src/outline/cff/
Dmod.rs145 let blend_state = self in subfont() localVariable
151 for entry in dict::entries(private_dict_data, blend_state) { in subfont()
213 let blend_state = subfont.blend_state(self, coords)?; in draw() localVariable
224 blend_state, in draw()
235 blend_state, in draw()
298 pub fn blend_state<'a>( in blend_state() method
/external/cronet/tot/third_party/rust/chromium_crates_io/vendor/skrifa-0.24.1/src/outline/cff/
Dmod.rs145 let blend_state = self in subfont() localVariable
151 for entry in dict::entries(private_dict_data, blend_state) { in subfont()
213 let blend_state = subfont.blend_state(self, coords)?; in draw() localVariable
224 blend_state, in draw()
235 blend_state, in draw()
298 pub fn blend_state<'a>( in blend_state() method
/external/intel-media-driver/media_driver/linux/common/vp/ddi/
Dmedia_libva_vp_tools.c576 if (p->blend_state) in VpDumpProcPipelineParams()
579 fprintf(fpLog, "\t flags = %d\n", p->blend_state->flags); in VpDumpProcPipelineParams()
580 fprintf(fpLog, "\t global_alpha = %f\n", p->blend_state->global_alpha); in VpDumpProcPipelineParams()
581 fprintf(fpLog, "\t min_luma = %f\n", p->blend_state->min_luma); in VpDumpProcPipelineParams()
582 fprintf(fpLog, "\t max_luma = %f\n", p->blend_state->max_luma); in VpDumpProcPipelineParams()
/external/mesa3d/src/gallium/drivers/virgl/
Dvirgl_encode.c560 const struct pipe_blend_state *blend_state) in virgl_encode_blend_state() argument
569 VIRGL_OBJ_BLEND_S0_INDEPENDENT_BLEND_ENABLE(blend_state->independent_blend_enable) | in virgl_encode_blend_state()
570 VIRGL_OBJ_BLEND_S0_LOGICOP_ENABLE(blend_state->logicop_enable) | in virgl_encode_blend_state()
571 VIRGL_OBJ_BLEND_S0_DITHER(blend_state->dither) | in virgl_encode_blend_state()
572 VIRGL_OBJ_BLEND_S0_ALPHA_TO_COVERAGE(blend_state->alpha_to_coverage) | in virgl_encode_blend_state()
573 VIRGL_OBJ_BLEND_S0_ALPHA_TO_ONE(blend_state->alpha_to_one); in virgl_encode_blend_state()
577 tmp = VIRGL_OBJ_BLEND_S1_LOGICOP_FUNC(blend_state->logicop_func); in virgl_encode_blend_state()
584 uint32_t alpha = (i == 0 && blend_state->advanced_blend_func) in virgl_encode_blend_state()
585 ? blend_state->advanced_blend_func in virgl_encode_blend_state()
586 : blend_state->rt[i].alpha_src_factor; in virgl_encode_blend_state()
[all …]
Dvirgl_context.c400 const struct pipe_blend_state *blend_state) in virgl_create_blend_state() argument
406 virgl_encode_blend_state(vctx, handle, blend_state); in virgl_create_blend_state()
412 void *blend_state) in virgl_bind_blend_state() argument
415 uint32_t handle = (unsigned long)blend_state; in virgl_bind_blend_state()
420 void *blend_state) in virgl_delete_blend_state() argument
423 uint32_t handle = (unsigned long)blend_state; in virgl_delete_blend_state()
428 … const struct pipe_depth_stencil_alpha_state *blend_state) in virgl_create_depth_stencil_alpha_state() argument
434 virgl_encode_dsa_state(vctx, handle, blend_state); in virgl_create_depth_stencil_alpha_state()
439 void *blend_state) in virgl_bind_depth_stencil_alpha_state() argument
442 uint32_t handle = (unsigned long)blend_state; in virgl_bind_depth_stencil_alpha_state()
/external/libva-utils/videoprocess/
Dvppblending.cpp66 VABlendState blend_state; member
1111 g_src_info[i].blend_state.flags |= VA_BLEND_GLOBAL_ALPHA; in video_frame_process()
1113 g_src_info[i].blend_state.flags |= VA_BLEND_PREMULTIPLIED_ALPHA; in video_frame_process()
1115 g_src_info[i].blend_state.flags |= VA_BLEND_LUMA_KEY; in video_frame_process()
1116 g_src_info[i].blend_state.global_alpha = composition_alpha; in video_frame_process()
1117 g_src_info[i].blend_state.min_luma = compositionLumaMin; in video_frame_process()
1118 g_src_info[i].blend_state.max_luma = compositionLumaMax; in video_frame_process()
1119 pipeline_param.blend_state = &g_src_info[i].blend_state; in video_frame_process()
/external/mesa3d/src/gallium/drivers/d3d12/
Dd3d12_context_graphics.cpp279 const struct pipe_blend_state *blend_state) in d3d12_create_blend_state() argument
285 if (blend_state->logicop_enable) { in d3d12_create_blend_state()
287 state->desc.RenderTarget[0].LogicOp = logic_op((pipe_logicop) blend_state->logicop_func); in d3d12_create_blend_state()
292 state->desc.AlphaToCoverageEnable = blend_state->alpha_to_coverage; in d3d12_create_blend_state()
295 if (blend_state->independent_blend_enable) { in d3d12_create_blend_state()
301 const struct pipe_rt_blend_state *rt = blend_state->rt + i; in d3d12_create_blend_state()
323 if (util_blend_state_is_dual(blend_state, i)) in d3d12_create_blend_state()
334 d3d12_bind_blend_state(struct pipe_context *pctx, void *blend_state) in d3d12_bind_blend_state() argument
337 struct d3d12_blend_state *new_state = (struct d3d12_blend_state *) blend_state; in d3d12_bind_blend_state()
353 d3d12_delete_blend_state(struct pipe_context *pctx, void *blend_state) in d3d12_delete_blend_state() argument
[all …]
Dd3d12_pipeline_state.cpp327 D3D12_BLEND_DESC& blend_state = (D3D12_BLEND_DESC&)pso_desc.BlendState; in create_gfx_pipeline_state() local
328 blend_state = state->blend->desc; in create_gfx_pipeline_state()
330 blend_state.RenderTarget[0].LogicOpEnable = false; in create_gfx_pipeline_state()
/external/mesa3d/src/intel/vulkan_hasvk/
DgenX_pipeline.c857 struct GENX(BLEND_STATE) blend_state = { in emit_cb_state()
873 pipeline->gfx8.blend_state : pipeline->gfx7.blend_state; in emit_cb_state()
936 blend_state.IndependentAlphaBlendEnable = true; in emit_cb_state()
992 blend.AlphaToCoverageEnable = blend_state.AlphaToCoverageEnable; in emit_cb_state()
999 blend.IndependentAlphaBlendEnable = blend_state.IndependentAlphaBlendEnable; in emit_cb_state()
1004 GENX(BLEND_STATE_pack)(NULL, blend_state_start, &blend_state); in emit_cb_state()
/external/mesa3d/src/gallium/frontends/nine/
Dnine_pipe.c153 nine_convert_blend_state(struct pipe_blend_state *blend_state, const DWORD *rs) in nine_convert_blend_state() argument
199 *blend_state = blend; in nine_convert_blend_state()

123