diff options
author | Alon Levy <alevy@redhat.com> | 2012-10-25 09:45:03 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2012-10-25 09:45:03 +0200 |
commit | 9aafc9df8276db5fde6291420004e60880bd4586 (patch) | |
tree | 388288ff92511aa797fbbe6dfcb6b07065a95001 | |
parent | b41cd72c3f68fd8d8f3f443993b4e60f4e2243ac (diff) |
temp fix: kms is missing client capabilities
-rw-r--r-- | src/qxl_driver.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qxl_driver.c b/src/qxl_driver.c index 42fab3c..507ed8c 100644 --- a/src/qxl_driver.c +++ b/src/qxl_driver.c @@ -1604,7 +1604,8 @@ can_accelerate_picture (PicturePtr pict) (((qxl)->client_capabilities[(cap) / 8]) & (1 << ((cap) % 8))) #else #define QXL_HAS_CAP(qxl, cap) \ - (((qxl)->rom->client_capabilities[(cap) / 8]) & (1 << ((cap) % 8))) + (qxl->rom ? (((qxl)->rom->client_capabilities[(cap) / 8]) & (1 << ((cap) % 8))) : 1) +// TODO: fix kms to use an io to get client_capabilities, polling, or just get a message via the device (we should be selecting on it and reading it), requires a libdrm_qxl.so. #endif static Bool |