/* * Copyright 2023 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. * * Authors: AMD *
*/
/* Get the type of the provided resource (none, phantom, main) based on the provided * context. If the context is unavailable, determine only if phantom or not.
*/ enum mall_stream_type dc_state_get_pipe_subvp_type(conststruct dc_state *state, conststruct pipe_ctx *pipe_ctx); enum mall_stream_type dc_state_get_stream_subvp_type(conststruct dc_state *state, conststruct dc_stream_state *stream);
/* Gets the phantom stream if main is provided, gets the main if phantom is provided.*/ struct dc_stream_state *dc_state_get_paired_subvp_stream(conststruct dc_state *state, conststruct dc_stream_state *stream);
/* allocate's phantom stream or plane and returns pointer to the object */ struct dc_stream_state *dc_state_create_phantom_stream(conststruct dc *dc, struct dc_state *state, struct dc_stream_state *main_stream); struct dc_plane_state *dc_state_create_phantom_plane(conststruct dc *dc, struct dc_state *state, struct dc_plane_state *main_plane);
/* deallocate's phantom stream or plane */ void dc_state_release_phantom_stream(conststruct dc *dc, struct dc_state *state, struct dc_stream_state *phantom_stream); void dc_state_release_phantom_plane(conststruct dc *dc, struct dc_state *state, struct dc_plane_state *phantom_plane);
/* add/remove phantom stream to context and generate subvp meta data */ enum dc_status dc_state_add_phantom_stream(conststruct dc *dc, struct dc_state *state, struct dc_stream_state *phantom_stream, struct dc_stream_state *main_stream); enum dc_status dc_state_remove_phantom_stream(conststruct dc *dc, struct dc_state *state, struct dc_stream_state *phantom_stream);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.