Home
last modified time | relevance | path

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

12

/external/mesa3d/src/gallium/state_trackers/vdpau/
Doutput.c590 VdpOutputSurfaceRenderBlendState const *blend_state) in BlenderToPipe() argument
597 if (blend_state) { in BlenderToPipe()
599 blend.rt[0].rgb_src_factor = BlendFactorToPipe(blend_state->blend_factor_source_color); in BlenderToPipe()
600 blend.rt[0].rgb_dst_factor = BlendFactorToPipe(blend_state->blend_factor_destination_color); in BlenderToPipe()
601 blend.rt[0].alpha_src_factor = BlendFactorToPipe(blend_state->blend_factor_source_alpha); in BlenderToPipe()
602 blend.rt[0].alpha_dst_factor = BlendFactorToPipe(blend_state->blend_factor_destination_alpha); in BlenderToPipe()
603 blend.rt[0].rgb_func = BlendEquationToPipe(blend_state->blend_equation_color); in BlenderToPipe()
604 blend.rt[0].alpha_func = BlendEquationToPipe(blend_state->blend_equation_alpha); in BlenderToPipe()
649 VdpOutputSurfaceRenderBlendState const *blend_state, in vlVdpOutputSurfaceRenderOutputSurface() argument
688 blend = BlenderToPipe(context, blend_state); in vlVdpOutputSurfaceRenderOutputSurface()
[all …]
/external/mesa3d/src/gallium/drivers/virgl/
Dvirgl_encode.c82 const struct pipe_blend_state *blend_state) in virgl_encode_blend_state() argument
91 VIRGL_OBJ_BLEND_S0_INDEPENDENT_BLEND_ENABLE(blend_state->independent_blend_enable) | in virgl_encode_blend_state()
92 VIRGL_OBJ_BLEND_S0_LOGICOP_ENABLE(blend_state->logicop_enable) | in virgl_encode_blend_state()
93 VIRGL_OBJ_BLEND_S0_DITHER(blend_state->dither) | in virgl_encode_blend_state()
94 VIRGL_OBJ_BLEND_S0_ALPHA_TO_COVERAGE(blend_state->alpha_to_coverage) | in virgl_encode_blend_state()
95 VIRGL_OBJ_BLEND_S0_ALPHA_TO_ONE(blend_state->alpha_to_one); in virgl_encode_blend_state()
99 tmp = VIRGL_OBJ_BLEND_S1_LOGICOP_FUNC(blend_state->logicop_func); in virgl_encode_blend_state()
104 VIRGL_OBJ_BLEND_S2_RT_BLEND_ENABLE(blend_state->rt[i].blend_enable) | in virgl_encode_blend_state()
105 VIRGL_OBJ_BLEND_S2_RT_RGB_FUNC(blend_state->rt[i].rgb_func) | in virgl_encode_blend_state()
106 VIRGL_OBJ_BLEND_S2_RT_RGB_SRC_FACTOR(blend_state->rt[i].rgb_src_factor) | in virgl_encode_blend_state()
[all …]
Dvirgl_context.c239 const struct pipe_blend_state *blend_state) in virgl_create_blend_state() argument
245 virgl_encode_blend_state(vctx, handle, blend_state); in virgl_create_blend_state()
251 void *blend_state) in virgl_bind_blend_state() argument
254 uint32_t handle = (unsigned long)blend_state; in virgl_bind_blend_state()
259 void *blend_state) in virgl_delete_blend_state() argument
262 uint32_t handle = (unsigned long)blend_state; in virgl_delete_blend_state()
267 … const struct pipe_depth_stencil_alpha_state *blend_state) in virgl_create_depth_stencil_alpha_state() argument
273 virgl_encode_dsa_state(vctx, handle, blend_state); in virgl_create_depth_stencil_alpha_state()
278 void *blend_state) in virgl_bind_depth_stencil_alpha_state() argument
281 uint32_t handle = (unsigned long)blend_state; in virgl_bind_depth_stencil_alpha_state()
Dvirgl_encode.h84 const struct pipe_blend_state *blend_state);
/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 …]
Dtestvirgl_encode.h73 const struct pipe_blend_state *blend_state);
/external/virglrenderer/src/
Dvrend_decode.c427 struct pipe_blend_state *blend_state; in vrend_decode_create_blend() local
435 blend_state = CALLOC_STRUCT(pipe_blend_state); in vrend_decode_create_blend()
436 if (!blend_state) in vrend_decode_create_blend()
440 blend_state->independent_blend_enable = (tmp & 1); in vrend_decode_create_blend()
441 blend_state->logicop_enable = (tmp >> 1) & 0x1; in vrend_decode_create_blend()
442 blend_state->dither = (tmp >> 2) & 0x1; in vrend_decode_create_blend()
443 blend_state->alpha_to_coverage = (tmp >> 3) & 0x1; in vrend_decode_create_blend()
444 blend_state->alpha_to_one = (tmp >> 4) & 0x1; in vrend_decode_create_blend()
447 blend_state->logicop_func = tmp & 0xf; in vrend_decode_create_blend()
451 blend_state->rt[i].blend_enable = tmp & 0x1; in vrend_decode_create_blend()
[all …]
Dvrend_renderer.c497 struct pipe_blend_state blend_state; member
1306 if (util_blend_state_is_dual(&ctx->sub->blend_state, 0)) { in add_shader_program()
3766 bool dual_src = util_blend_state_is_dual(&ctx->sub->blend_state, 0); in vrend_draw_vbo()
4217 bool dual_src = util_blend_state_is_dual(&ctx->sub->blend_state, i); in vrend_hw_emit_blend()
4243 bool dual_src = util_blend_state_is_dual(&ctx->sub->blend_state, 0); in vrend_hw_emit_blend()
4297 struct pipe_blend_state new_state = ctx->sub->blend_state; in vrend_patch_blend_state()
4298 struct pipe_blend_state *state = &ctx->sub->blend_state; in vrend_patch_blend_state()
4357 memset(&ctx->sub->blend_state, 0, sizeof(ctx->sub->blend_state)); in vrend_object_bind_blend()
4368 ctx->sub->blend_state = *state; in vrend_object_bind_blend()
4370 vrend_hw_emit_blend(ctx, &ctx->sub->blend_state); in vrend_object_bind_blend()
/external/mesa3d/src/intel/vulkan/
DgenX_pipeline.c869 struct GENX(BLEND_STATE) blend_state = {
885 pipeline->blend_state =
889 uint32_t *state_pos = pipeline->blend_state.map;
948 blend_state.IndependentAlphaBlendEnable = true;
983 blend.AlphaToCoverageEnable = blend_state.AlphaToCoverageEnable;
992 blend_state.IndependentAlphaBlendEnable;
998 GENX(BLEND_STATE_pack)(NULL, pipeline->blend_state.map, &blend_state);
999 anv_state_flush(device, pipeline->blend_state);
1002 bsp.BlendStatePointer = pipeline->blend_state.offset;
1761 pipeline->blend_state.map = NULL;
Danv_pipeline.c220 if (pipeline->blend_state.map) in anv_DestroyPipeline()
221 anv_state_pool_free(&device->dynamic_state_pool, pipeline->blend_state); in anv_DestroyPipeline()
Danv_private.h2139 struct anv_state blend_state; member
/external/mesa3d/src/amd/vulkan/
Dradv_meta_fast_clear.c293 const VkPipelineColorBlendStateCreateInfo blend_state = { in create_pipeline() local
339 .pColorBlendState = &blend_state, in create_pipeline()
385 .pColorBlendState = &blend_state, in create_pipeline()
431 .pColorBlendState = &blend_state, in create_pipeline()
/external/mesa3d/src/gallium/state_trackers/nine/
Dnine_pipe.c156 nine_convert_blend_state(struct pipe_blend_state *blend_state, const DWORD *rs) in nine_convert_blend_state() argument
201 *blend_state = blend; in nine_convert_blend_state()
/external/mesa3d/src/gallium/state_trackers/va/
Dsurface.c194 void *blend_state; in vlVaPutSubpictures() local
254 blend_state = drv->pipe->create_blend_state(drv->pipe, &blend); in vlVaPutSubpictures()
257 vl_compositor_set_layer_blend(&drv->cstate, 0, blend_state, false); in vlVaPutSubpictures()
264 drv->pipe->delete_blend_state(drv->pipe, blend_state); in vlVaPutSubpictures()
/external/mesa3d/src/gallium/drivers/r600/
Dr600_hw_context.c385 if (ctx->blend_state.cso) in r600_begin_new_cs()
386 r600_mark_atom_dirty(ctx, &ctx->blend_state.atom); in r600_begin_new_cs()
Dr600_state_common.c189 r600_set_cso_state_with_cb(rctx, &rctx->blend_state, blend, &blend->buffer); in r600_bind_blend_state_internal()
193 r600_set_cso_state_with_cb(rctx, &rctx->blend_state, blend, &blend->buffer_no_blend); in r600_bind_blend_state_internal()
226 r600_set_cso_state_with_cb(rctx, &rctx->blend_state, NULL, NULL); in r600_bind_blend_state()
513 if (rctx->blend_state.cso == state) { in r600_delete_blend_state()
1856 rctx->blend_state.cso, in r600_update_derived_state()
Dr600_pipe.h516 struct r600_cso_state blend_state; member
Dr600_blit.c76 util_blitter_save_blend(rctx->blitter, rctx->blend_state.cso); in r600_blitter_begin()
/external/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()
Dr300_state.c539 UPDATE_STATE(state, r300->blend_state); in r300_bind_blend_state()
975 r300_mark_atom_dirty(r300, &r300->blend_state); in r300_set_framebuffer_state()
Dr300_blit.c63 util_blitter_save_blend(r300->blitter, r300->blend_state.state); in r300_blitter_begin()
/external/mesa3d/src/mesa/drivers/dri/i965/
DgenX_state_upload.c3029 static const struct brw_tracked_state genX(blend_state) = {
5435 &genX(blend_state), /* must do before cc unit */
5500 &genX(blend_state), /* must do before cc unit */
5588 &genX(blend_state),
/external/mesa3d/src/gallium/drivers/trace/
Dtr_context.c278 trace_dump_arg(blend_state, state); in trace_context_create_blend_state()
/external/mesa3d/src/gallium/drivers/ddebug/
Ddd_draw.c339 DUMP(blend_state, &dstate->blend->state.blend); in dd_dump_draw_vbo()

12