qxl-wddm-dod: Fix video modes enumeration
When the video mode is changed and then the driver disabled and enabled, it did not enumerate available video modes with lower resolution than current one. All modes starting from 1024x768 should be available regardless what is current resolution on driver startup Signed-off-by: Yuri Benditovich <yuri.benditovich@daynix.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
02c1ed6065
commit
58b3a7a75b
@ -2560,8 +2560,8 @@ NTSTATUS VgaDevice::GetModeList(DXGK_DISPLAY_INFORMATION* pDispInfo)
|
|||||||
|
|
||||||
DbgPrint(TRACE_LEVEL_INFORMATION, ("ModeTemp = 0x%X %dx%d@%d\n", ModeTemp, tmpModeInfo.XResolution, tmpModeInfo.YResolution, tmpModeInfo.BitsPerPixel));
|
DbgPrint(TRACE_LEVEL_INFORMATION, ("ModeTemp = 0x%X %dx%d@%d\n", ModeTemp, tmpModeInfo.XResolution, tmpModeInfo.YResolution, tmpModeInfo.BitsPerPixel));
|
||||||
|
|
||||||
if (tmpModeInfo.XResolution >= Width &&
|
if (tmpModeInfo.XResolution >= MIN_WIDTH_SIZE &&
|
||||||
tmpModeInfo.YResolution >= Height &&
|
tmpModeInfo.YResolution >= MIN_HEIGHT_SIZE &&
|
||||||
tmpModeInfo.BitsPerPixel == BitsPerPixel &&
|
tmpModeInfo.BitsPerPixel == BitsPerPixel &&
|
||||||
tmpModeInfo.PhysBasePtr != 0)
|
tmpModeInfo.PhysBasePtr != 0)
|
||||||
{
|
{
|
||||||
@ -3186,8 +3186,8 @@ NTSTATUS QxlDevice::GetModeList(DXGK_DISPLAY_INFORMATION* pDispInfo)
|
|||||||
|
|
||||||
DbgPrint(TRACE_LEVEL_INFORMATION, ("%s: modes[%d] x_res = %d, y_res = %d, bits = %d BitsPerPixel = %d\n", __FUNCTION__, CurrentMode, tmpModeInfo->x_res, tmpModeInfo->y_res, tmpModeInfo->bits, BitsPerPixel));
|
DbgPrint(TRACE_LEVEL_INFORMATION, ("%s: modes[%d] x_res = %d, y_res = %d, bits = %d BitsPerPixel = %d\n", __FUNCTION__, CurrentMode, tmpModeInfo->x_res, tmpModeInfo->y_res, tmpModeInfo->bits, BitsPerPixel));
|
||||||
|
|
||||||
if (tmpModeInfo->x_res >= Width &&
|
if (tmpModeInfo->x_res >= MIN_WIDTH_SIZE &&
|
||||||
tmpModeInfo->y_res >= Height &&
|
tmpModeInfo->y_res >= MIN_HEIGHT_SIZE &&
|
||||||
tmpModeInfo->bits == QXL_BPP)
|
tmpModeInfo->bits == QXL_BPP)
|
||||||
{
|
{
|
||||||
m_ModeNumbers[SuitableModeCount] = SuitableModeCount;
|
m_ModeNumbers[SuitableModeCount] = SuitableModeCount;
|
||||||
|
Loading…
Reference in New Issue
Block a user