mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-10 16:35:39 +07:00
drm/amd/display: prevent setting cursor position with no surface
Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
dcbd4ee0fa
commit
0be06fc29b
@ -232,8 +232,8 @@ bool dc_stream_set_cursor_position(
|
|||||||
for (i = 0; i < MAX_PIPES; i++) {
|
for (i = 0; i < MAX_PIPES; i++) {
|
||||||
struct pipe_ctx *pipe_ctx = &res_ctx->pipe_ctx[i];
|
struct pipe_ctx *pipe_ctx = &res_ctx->pipe_ctx[i];
|
||||||
|
|
||||||
if ((pipe_ctx->stream == stream) &&
|
if (pipe_ctx->stream == stream &&
|
||||||
(pipe_ctx->ipp != NULL)) {
|
pipe_ctx->ipp && pipe_ctx->surface) {
|
||||||
struct input_pixel_processor *ipp = pipe_ctx->ipp;
|
struct input_pixel_processor *ipp = pipe_ctx->ipp;
|
||||||
struct dc_cursor_mi_param param = {
|
struct dc_cursor_mi_param param = {
|
||||||
.pixel_clk_khz = dc_stream->timing.pix_clk_khz,
|
.pixel_clk_khz = dc_stream->timing.pix_clk_khz,
|
||||||
|
Loading…
Reference in New Issue
Block a user