[PATCH 074/120] drm/amd/display: Move and Rename "is_stream_changed()"
Harry Wentland
harry.wentland at amd.com
Wed Aug 9 15:02:00 UTC 2017
From: Bhawanpreet Lakha <Bhawanpreet.Lakha at amd.com>
-Move "is_stream_changed()" to DC interface
-Rename "is_stream_changed()" to "dc_is_stream_changed()"
Change-Id: I0e38458e061bbb4f9c37e685c32c9d180b3beab9
Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha at amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland at amd.com>
---
drivers/gpu/drm/amd/display/dc/core/dc.c | 2 +-
drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 4 ++--
drivers/gpu/drm/amd/display/dc/dc.h | 2 ++
drivers/gpu/drm/amd/display/dc/inc/resource.h | 2 --
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c
index ba8093317aa9..5acf4c697ae8 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
@@ -641,7 +641,7 @@ static bool is_validation_required(
if (set[i].surface_count != context->stream_status[i].surface_count)
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;
for (j = 0; j < set[i].surface_count; j++) {
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
index 84efe7216d90..4a1eaab34942 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
@@ -1155,7 +1155,7 @@ static bool are_stream_backends_same(
return true;
}
-bool is_stream_unchanged(
+bool dc_is_stream_unchanged(
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 (j = 0; old_context && j < old_context->stream_count; j++)
- if (is_stream_unchanged(
+ if (dc_is_stream_unchanged(
old_context->streams[j],
context->streams[i])) {
if (!resource_attach_surfaces_to_context(
diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h
index 63fd5b3de738..0918569eefa8 100644
--- a/drivers/gpu/drm/amd/display/dc/dc.h
+++ b/drivers/gpu/drm/amd/display/dc/dc.h
@@ -534,6 +534,8 @@ struct dc_stream_update {
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
diff --git a/drivers/gpu/drm/amd/display/dc/inc/resource.h b/drivers/gpu/drm/amd/display/dc/inc/resource.h
index 571bfae62a3c..ca3f49379bea 100644
--- a/drivers/gpu/drm/amd/display/dc/inc/resource.h
+++ b/drivers/gpu/drm/amd/display/dc/inc/resource.h
@@ -132,8 +132,6 @@ struct pipe_ctx *find_idle_secondary_pipe(
bool resource_is_stream_unchanged(
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(
const struct dc_validation_set set[],
--
2.11.0
More information about the amd-gfx
mailing list