Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
`demo` is too vague.
|
|
Using 32-bits isn't the best, but it better represents the S31.32
format than 16-bit. 64-bit is desired, since each CTM element is
S31.32 format, but there's no xserver support for it.
We can use the first 32 bits to represent the S31 signed-
magnitude whole component, and the second 32 bits to represent
the fractional component.
See the comments in set_ctm() for details.
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
|
|
For use when setting randr property blobs.
This is sort of a revert of:
908098f30 Hardcode 16 bit format into set_output_blob()
This is done in preparation of using 32-bit format for CTM.
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
|
|
We really shouldn't be dependant on libdrm anyways.
Also switch linux int types to C standard int types.
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
|
|
We can get rid of xf86drm.h includes. It's a better way of showing that
we don't depend on libdrm anymore.
This reverts commit 88cb2a6ec6d4b39349c68ecd5057750d99305bdd.
|
|
With the 2nd revision of the interface, we do not need to open the DRM
fd. We were previously using it to create a DRM blob, but thats not
necessary anymore.
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
|
|
All blob properties are currently using 16 bits, due to some issues with
the RandR extension. Just hard-code it for now, for clarity.
Add some comments explaining that as well.
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
|
|
They're already included via xf86drm.h
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
|
|
The DDX driver manages creation of DRM blobs. We just pass a pointer to
an array containing the LUT/CTM data.
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
|
|
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
|
|
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
|
|
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
|
|
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
|
|
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
|
|
Modify makefile to do so.
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
|
|
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
|
|
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
|
|
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
|
|
And also get screen resources using libxrandr library. Use it to open a
hard-coded DisplayPort-0 output for now.
Add headers and update makefile.
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
|
|
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
|
|
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
|
|
The build dir was suppose to contain any compiled objects for easy
gitignoring. However, only we only ended up with one executable.
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
|
|
The app currently uses a system call to xrandr to set the blob IDs.
Ideally, we should include libxrandr, and use the library to do so
instead.
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
|
|
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
|
|
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
|
|
And fix makefile.
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
|
|
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
|
|
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
|
|
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
|