|
@@ -363,7 +363,7 @@ void set_dpms(
|
|
struct dc_stream_state *stream,
|
|
struct dc_stream_state *stream,
|
|
bool dpms_off)
|
|
bool dpms_off)
|
|
{
|
|
{
|
|
- struct pipe_ctx *pipe_ctx;
|
|
|
|
|
|
+ struct pipe_ctx *pipe_ctx = NULL;
|
|
int i;
|
|
int i;
|
|
|
|
|
|
for (i = 0; i < MAX_PIPES; i++) {
|
|
for (i = 0; i < MAX_PIPES; i++) {
|
|
@@ -373,6 +373,11 @@ void set_dpms(
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (!pipe_ctx) {
|
|
|
|
+ ASSERT(0);
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
if (stream->dpms_off != dpms_off) {
|
|
if (stream->dpms_off != dpms_off) {
|
|
stream->dpms_off = dpms_off;
|
|
stream->dpms_off = dpms_off;
|
|
if (dpms_off)
|
|
if (dpms_off)
|