Commit Graph

82 Commits

Author SHA1 Message Date
Sameeh Jubran
aa0b291186 Support future Qxl revisions
The driver determines operation mode
(QXL or VGA) by checking device hardware
ids including revision id field.

Without this patch driver operates in VGA
mode for all revisions other than 4.

This patch makes driver operate in QXL
mode revision 4 and newer devices.

Signed-off-by: Sameeh Jubran <sameeh@daynix.com>
Signed-off-by: Dmitry Fleytman <dmitry@daynix.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-09-09 14:17:19 +01:00
Sameeh Jubran
27713ea765 Fixing Move rectangles implementation
As documented in MSDN, "DxgkDdiPresentDisplayOnly" should copy
each "move rectangle" from a given source point in the source buffer
to the destination. The current implementation doesn't take into account
the shift of the given source point at all. This patch fixies the issue.

Signed-off-by: Sameeh Jubran <sameeh@daynix.com>
Signed-off-by: Dmitry Fleytman <dmitry@daynix.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-09-09 14:15:18 +01:00
Sameeh Jubran
2a4def7434 Set SupportNonVGA in QueryAdapterInfo callback
This capability flag should be set in order
to indicate to the OS that callback
DxgkDdiStopDeviceAndReleasePostDisplayOwnership
is supported.

Signed-off-by: Sameeh Jubran <sameeh@daynix.com>
Signed-off-by: Dmitry Fleytman <dmitry@daynix.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-09-09 11:45:09 +01:00
Sameeh Jubran
7383452757 Replacing tabs with spaces
Signed-off-by: Sameeh Jubran <sameeh@daynix.com>
Signed-off-by: Dmitry Fleytman <dmitry@daynix.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-09-09 11:17:42 +01:00
Dmitry Fleytman
2919989c2a Convert UTF-16LE files to single byte unix format
Git detect these files as binary which cause some issues with log and
other command.
The conversion allows different tools (git, VS and different editors)
to work correctly.

Signed-off-by: Dmitry Fleytman <dmitry@daynix.com>
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2016-09-09 11:09:36 +01:00
Sameeh Jubran
23f76adecc Upgrade to Windows 10 WDK
* Added Windows 10 Configurations and removed older ones.

* Migration to Visual Studio 2015.

* Set Allow Date, Time and Timestamp property for all builds/platforms.

* Fixed up project configuration names to be consistent.

* unified build output directories

* Simple build script added

Signed-off-by: Dmitry Fleytman <dmitry@daynix.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-09-09 11:09:31 +01:00
Sameeh Jubran
30ee4d8b20 Fix handling of monochrome cursors
* Allow for 1bpp bitmap followed by 1bpp XOR map.

Based on a patch by Sandy Stutsman <sstutsma@redhat.com>

Signed-off-by: Sameeh Jubran <sameeh@daynix.com>

Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-09-09 11:02:16 +01:00
Sameeh Jubran
ebfb912125 Remove unused notify present display only interrupt
Signed-off-by: Sameeh Jubran <sameeh@daynix.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-09-09 10:53:40 +01:00
Sameeh Jubran
f3f9bcbde8 Add debug print macro to dump debug print statements to kernel debugger output
Signed-off-by: Sameeh Jubran <sameeh@daynix.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-09-09 10:51:12 +01:00
Frediano Ziglio
06ab9c9595 Normalise line ending
Some files had different line ending (some lines DOS while some others
UNIX). Use the same line ending using the nearest ending.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2016-09-09 10:49:09 +01:00
Sameeh Jubran
eae8b8a103 Fixing monitor flicker on resolution change
Passing the flag QXL_SURF_FLAG_KEEP_DATA to the new created surface
causes weird flickering, thus this should be set to 0.

Signed-off-by: Sameeh Jubran <sameeh@daynix.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-09-08 13:20:23 +01:00
Sameeh Jubran
d1ceca6b07 Reserved must be set to 0
According to msdn, "The display miniport driver must set this
value to 0"

Signed-off-by: Sameeh Jubran <sameeh@daynix.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-09-08 13:19:31 +01:00
Sameeh Jubran
20487e2247 On power wake call the init functions before setting the vidpn to black. Otherwise, BSOD.
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-09-08 13:16:36 +01:00
Sameeh Jubran
35c93f3886 Fix interrupt mask
Signed-off-by: Sameeh Jubran <sameeh@daynix.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-09-08 13:15:38 +01:00
Sandy Stutsman
e828c45bf2 Use SrcPitch when calculating size of memory to map PresentDisplayOnly
Can result in a BSOD, as the image would be mapped only partially causing page faults when
accessing missing piece of the image.

Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-09-08 13:13:55 +01:00
Sandy Stutsman
8ec2bf9c68 Fix Code Integrity error generated by the Drive Verifier
Add MdlMappingNoExecute to MmGetSystemAddressForMDLSafe call in
ExecutePresentDisplayOnly.

Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-09-08 13:12:43 +01:00
Sameeh Jubran
aa48200e49 Add delete operator
Based on a patch by Sandy Stutsman <sstutsma@redhat.com>

Signed-off-by: Javier Celaya <javier.celaya@flexvdi.com>
Signed-off-by: Sameeh Jubran <sameeh@daynix.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-09-08 13:07:22 +01:00
Sameeh Jubran
f7298659ce Delete empty README file
Signed-off-by: Sameeh Jubran <sameeh@daynix.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-09-08 12:41:57 +01:00
Reza Jelveh
f1cee95ea2 move cursor to cursor channel 2015-07-20 21:45:32 +10:00
Vadim Rozenfeld
4e1b33dd4d add GPLv2 license file 2015-05-06 18:12:08 +10:00
Vadim Rozenfeld
e87cb93270 fix driver installation problem 2015-05-06 18:11:52 +10:00
Vadim Rozenfeld
89e4d5dd6f Merge remote-tracking branch 'remotes/qxl-wddm-next/work'
Conflicts:
	qxldod/BaseObject.cpp
	qxldod/QxlDod.cpp
	qxldod/QxlDod.h
	qxldod/callVisualStudio.bat
	qxldod/checkWin8Tools.bat
	qxldod/driver.cpp
	qxldod/driver.h
	qxldod/getVisualStudioCmdLine.vbs
	qxldod/qxldod.vcxproj
	qxldod/qxldod.vcxproj.filters
2015-04-10 15:30:05 +10:00
Vadim Rozenfeld
e5bf7c5246 cosmetic changes in inx file 2015-04-10 12:23:48 +10:00
Vadim Rozenfeld
7887cc2041 disable dbg printout 2015-03-30 22:59:54 +11:00
Vadim Rozenfeld
165b53d48b fix BSOD when disabling device 2015-03-30 22:57:12 +11:00
Vadim Rozenfeld
fefcf839d4 replace inf with inx file 2015-03-30 22:55:33 +11:00
Vadim Rozenfeld
205c4b09ef add missing file 2015-03-24 20:11:25 +11:00
Vadim Rozenfeld
4b168bbbef trivial cleanups 2015-03-24 17:22:45 +11:00
Vadim Rozenfeld
4fc48d370f fix crashes when verifier is running 2015-03-24 16:41:58 +11:00
Vadim Rozenfeld
5f7bba4cbc fix resize problem (reported and fixed by Sandy Stutsman 2015-03-18 22:58:25 +11:00
Vadim Rozenfeld
2317e7c1d4 align arbitrary resolution 2015-02-23 22:21:14 +11:00
Vadim Rozenfeld
f059ee240e fix resolution mismatch when switching between VGA and QXL modes
(cherry picked from commit b2a0aef4a5)
2015-02-19 21:09:45 +11:00
Vadim Rozenfeld
b2a0aef4a5 fix resolution mismatch when switching between VGA and QXL modes 2015-02-19 21:07:24 +11:00
Vadim Rozenfeld
fa8291cf37 publish adding a new resolution
(cherry picked from commit 7693d4153c)
2015-02-18 21:07:52 +11:00
Vadim Rozenfeld
8d33c3072e implement Escape handler
(cherry picked from commit 170be1696a)
2015-02-18 21:07:34 +11:00
Vadim Rozenfeld
2db3021b96 fix VS 12 checking batch
(cherry picked from commit e4480e7d50)

Conflicts:
	qxldod/checkWin8Tools.bat
2015-02-18 21:06:57 +11:00
Vadim Rozenfeld
3d329228d5 trivial cleanup
(cherry picked from commit 024b2b30b9)
2015-02-18 21:04:07 +11:00
Vadim Rozenfeld
1ceaf1055e add Win8.1 as a build target
(cherry picked from commit af54beffe1)
2015-02-18 21:03:53 +11:00
Vadim Rozenfeld
7693d4153c publish adding a new resolution 2015-02-18 20:57:00 +11:00
Vadim Rozenfeld
170be1696a implement Escape handler 2015-02-08 21:04:39 +11:00
Vadim Rozenfeld
e4480e7d50 fix VS 12 checking batch 2015-01-05 21:30:55 +11:00
Vadim Rozenfeld
024b2b30b9 trivial cleanup 2014-12-15 20:31:09 +11:00
Vadim Rozenfeld
af54beffe1 add Win8.1 as a build target 2014-12-14 21:47:02 +11:00
Vadim Rozenfeld
b15d2f5bbd Merge branch 'master' of https://github.com/vrozenfe/qxl-dod
Conflicts:
	qxldod/QxlDod.h
2014-12-08 18:51:38 +11:00
Vadim Rozenfeld
5c16429c9f add multi-monitor support in QXL mode
(cherry picked from commit 861b2d2d44)
2014-12-08 18:44:12 +11:00
Vadim Rozenfeld
ec8f7270bf publish qxl device id
(cherry picked from commit 2885958174)
2014-12-08 18:43:51 +11:00
Vadim Rozenfeld
861b2d2d44 add multi-monitor support in QXL mode 2014-12-06 15:44:28 +11:00
Vadim Rozenfeld
2885958174 publish qxl device id 2014-12-06 09:20:04 +11:00
Vadim Rozenfeld
710ddddc00 add win8.1 as a build target 2014-09-07 21:13:22 +10:00
Vadim Rozenfeld
c2872462a8 read vga and cursor registry parameters 2014-09-07 21:12:24 +10:00