drm/amd/display: Move and Rename "is_stream_changed()"
-Move "is_stream_changed()" to DC interface -Rename "is_stream_changed()" to "dc_is_stream_changed()" Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> Reviewed-by: Harry Wentland <Harry.Wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
b701542d29
commit
d54d29db47
@ -641,7 +641,7 @@ static bool is_validation_required(
|
|||||||
|
|
||||||
if (set[i].surface_count != context->stream_status[i].surface_count)
|
if (set[i].surface_count != context->stream_status[i].surface_count)
|
||||||
return true;
|
return true;
|
||||||
if (!is_stream_unchanged(set[i].stream, context->streams[i]))
|
if (!dc_is_stream_unchanged(set[i].stream, context->streams[i]))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
for (j = 0; j < set[i].surface_count; j++) {
|
for (j = 0; j < set[i].surface_count; j++) {
|
||||||
|
@ -1155,7 +1155,7 @@ static bool are_stream_backends_same(
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool is_stream_unchanged(
|
bool dc_is_stream_unchanged(
|
||||||
struct dc_stream *old_stream, struct dc_stream *stream)
|
struct dc_stream *old_stream, struct dc_stream *stream)
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -1176,7 +1176,7 @@ bool resource_validate_attach_surfaces(
|
|||||||
|
|
||||||
for (i = 0; i < set_count; i++) {
|
for (i = 0; i < set_count; i++) {
|
||||||
for (j = 0; old_context && j < old_context->stream_count; j++)
|
for (j = 0; old_context && j < old_context->stream_count; j++)
|
||||||
if (is_stream_unchanged(
|
if (dc_is_stream_unchanged(
|
||||||
old_context->streams[j],
|
old_context->streams[j],
|
||||||
context->streams[i])) {
|
context->streams[i])) {
|
||||||
if (!resource_attach_surfaces_to_context(
|
if (!resource_attach_surfaces_to_context(
|
||||||
|
@ -534,6 +534,8 @@ struct dc_stream_update {
|
|||||||
struct dc_transfer_func *out_transfer_func;
|
struct dc_transfer_func *out_transfer_func;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
bool dc_is_stream_unchanged(
|
||||||
|
struct dc_stream *old_stream, struct dc_stream *stream);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Setup stream attributes if no stream updates are provided
|
* Setup stream attributes if no stream updates are provided
|
||||||
|
@ -132,8 +132,6 @@ struct pipe_ctx *find_idle_secondary_pipe(
|
|||||||
bool resource_is_stream_unchanged(
|
bool resource_is_stream_unchanged(
|
||||||
struct validate_context *old_context, struct dc_stream *stream);
|
struct validate_context *old_context, struct dc_stream *stream);
|
||||||
|
|
||||||
bool is_stream_unchanged(
|
|
||||||
struct dc_stream *old_stream, struct dc_stream *stream);
|
|
||||||
|
|
||||||
bool resource_validate_attach_surfaces(
|
bool resource_validate_attach_surfaces(
|
||||||
const struct dc_validation_set set[],
|
const struct dc_validation_set set[],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user