drm/amd/display: Handle virtual hardware detect
authorjsg <jsg@openbsd.org>
Thu, 17 Aug 2023 03:56:38 +0000 (03:56 +0000)
committerjsg <jsg@openbsd.org>
Thu, 17 Aug 2023 03:56:38 +0000 (03:56 +0000)
From Rodrigo Siqueira
60334c0cba2f7741252960994b1e9b1d6b668d07 in linux-6.1.y/6.1.46
987b96eb860036ab79051fb271f7fbdc01c9daf5 in mainline linux

sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c

index 8f9c60e..9b7ddd0 100644 (file)
@@ -1942,6 +1942,9 @@ enum dc_status dc_commit_streams(struct dc *dc,
        struct pipe_ctx *pipe;
        bool handle_exit_odm2to1 = false;
 
+       if (dc->ctx->dce_environment == DCE_ENV_VIRTUAL_HW)
+               return res;
+
        if (!streams_changed(dc, streams, stream_count))
                return res;