-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade libdrm-2.4.75 to libdrm-2.4.109
- Loading branch information
Showing
45 changed files
with
3,061 additions
and
646 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
Dec-30-2021 - Klaus Ziegler | ||
|
||
Issues left over up from release 2.4.109: | ||
|
||
1. This is just the upgrade from libdrm-2.4.75 to 2.4.109, no new functionality | ||
of libdrm-2.4.109 has been checked or reflected in any manifest file, this | ||
will be done in subsequent #PRs. | ||
|
||
2. Implement dynamic creation of the new header file: | ||
|
||
- generated_static_table_fourcc.h | ||
|
||
into the build process of gfx-drm using Python, the regular build process | ||
of libdrm uses meson to build this header file. For the moment, the supplied | ||
header file was created using a regular meson build of the library on SPARC | ||
and Intel platforms to make sure there are no differences. | ||
|
||
3. The creation of manual pages has been disabled in usr/src/man/Makefile | ||
for subdirectories man3 and man7, because illumos based distributions up to | ||
date don't include rst2man(1) command. | ||
|
||
4. Get rid of 32bit support. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
Dec-30-2021 - Klaus Ziegler | ||
|
||
To upgrade libdrm: | ||
|
||
change LIBDRM_VERS in | ||
usr/src/common/libdrm/Makefile | ||
usr/src/common/libdrm/Makefile.drm | ||
LIBDRM_HASH in | ||
usr/src/common/libdrm/Makefile | ||
|
||
If the file extension of the file to be downloaded has changed, it must be | ||
changed in usr/src/pkg/manifests/x11-library-libdrm.mf and LIBDRM_ARCHIVE in | ||
usr/src/common/libdrm/Makefile must be modified accordingly. | ||
|
||
# NOTE: if you want to contribute changes to this graphics/DRM gate, | ||
# please use your own fork of gfx-drm.git and substitute HTTPS/URL below, | ||
# to match your repository. | ||
|
||
After you have setup a build environment as follows: | ||
git clone https://github.com/illumos/gfx-drm.git | ||
cd gfx-drm | ||
export BLDENV=tools/bldenv | ||
chmod 755 tools/bldenv | ||
|
||
edit myenv.sh to suite your needs, and start the first build: | ||
/usr/bin/env -i $BLDENV myenv.sh "cd usr/src; make install" | ||
|
||
most likely this first build will err'out right after unpacking | ||
the new library archive. At this stage the make target: check | ||
is run, which checks differences of gfx-drm headers and the | ||
new library supplied headers, these 5 headers will be checked: | ||
|
||
drm.h drm_fourcc.h drm_mode.h drm_sarea.h i915_drm.h | ||
|
||
To pass check target, generate patch files for these headers: | ||
cd usr/src/common/libdrm/libdrm-2.4.<new-version>/include/drm | ||
gdiff -u drm.h <WS>/usr/src/uts/common/drm/drm.h > /tmp/drm.h.patch | ||
and the others as well, then apply these patches to headers | ||
contained in usr/src/uts/common/drm and restart the build. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,6 @@ | |
PROG= \ | ||
drmsl \ | ||
hash \ | ||
random \ | ||
drmdevice | ||
|
||
include ../../Makefile.drm | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
usr/src/common/libdrm/libdrm-2.4.109/generated_static_table_fourcc.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* AUTOMATICALLY GENERATED by gen_table_fourcc.py. You should modify | ||
that script instead of adding here entries manually! */ | ||
static const struct drmFormatModifierInfo drm_format_modifier_table[] = { | ||
{ DRM_MODIFIER_INVALID(NONE, INVALID_MODIFIER) }, | ||
{ DRM_MODIFIER_LINEAR(NONE, LINEAR) }, | ||
{ DRM_MODIFIER_INTEL(X_TILED, X_TILED) }, | ||
{ DRM_MODIFIER_INTEL(Y_TILED, Y_TILED) }, | ||
{ DRM_MODIFIER_INTEL(Yf_TILED, Yf_TILED) }, | ||
{ DRM_MODIFIER_INTEL(Y_TILED_CCS, Y_TILED_CCS) }, | ||
{ DRM_MODIFIER_INTEL(Yf_TILED_CCS, Yf_TILED_CCS) }, | ||
{ DRM_MODIFIER_INTEL(Y_TILED_GEN12_RC_CCS, Y_TILED_GEN12_RC_CCS) }, | ||
{ DRM_MODIFIER_INTEL(Y_TILED_GEN12_MC_CCS, Y_TILED_GEN12_MC_CCS) }, | ||
{ DRM_MODIFIER_INTEL(Y_TILED_GEN12_RC_CCS_CC, Y_TILED_GEN12_RC_CCS_CC) }, | ||
{ DRM_MODIFIER(SAMSUNG, 64_32_TILE, 64_32_TILE) }, | ||
{ DRM_MODIFIER(SAMSUNG, 16_16_TILE, 16_16_TILE) }, | ||
{ DRM_MODIFIER(QCOM, COMPRESSED, COMPRESSED) }, | ||
{ DRM_MODIFIER(VIVANTE, TILED, TILED) }, | ||
{ DRM_MODIFIER(VIVANTE, SUPER_TILED, SUPER_TILED) }, | ||
{ DRM_MODIFIER(VIVANTE, SPLIT_TILED, SPLIT_TILED) }, | ||
{ DRM_MODIFIER(VIVANTE, SPLIT_SUPER_TILED, SPLIT_SUPER_TILED) }, | ||
{ DRM_MODIFIER(NVIDIA, TEGRA_TILED, TEGRA_TILED) }, | ||
{ DRM_MODIFIER(NVIDIA, 16BX2_BLOCK_ONE_GOB, 16BX2_BLOCK_ONE_GOB) }, | ||
{ DRM_MODIFIER(NVIDIA, 16BX2_BLOCK_TWO_GOB, 16BX2_BLOCK_TWO_GOB) }, | ||
{ DRM_MODIFIER(NVIDIA, 16BX2_BLOCK_FOUR_GOB, 16BX2_BLOCK_FOUR_GOB) }, | ||
{ DRM_MODIFIER(NVIDIA, 16BX2_BLOCK_EIGHT_GOB, 16BX2_BLOCK_EIGHT_GOB) }, | ||
{ DRM_MODIFIER(NVIDIA, 16BX2_BLOCK_SIXTEEN_GOB, 16BX2_BLOCK_SIXTEEN_GOB) }, | ||
{ DRM_MODIFIER(NVIDIA, 16BX2_BLOCK_THIRTYTWO_GOB, 16BX2_BLOCK_THIRTYTWO_GOB) }, | ||
{ DRM_MODIFIER(BROADCOM, VC4_T_TILED, VC4_T_TILED) }, | ||
{ DRM_MODIFIER(BROADCOM, SAND32, SAND32) }, | ||
{ DRM_MODIFIER(BROADCOM, SAND64, SAND64) }, | ||
{ DRM_MODIFIER(BROADCOM, SAND128, SAND128) }, | ||
{ DRM_MODIFIER(BROADCOM, SAND256, SAND256) }, | ||
{ DRM_MODIFIER(BROADCOM, UIF, UIF) }, | ||
{ DRM_MODIFIER(ARM, 16X16_BLOCK_U_INTERLEAVED, 16X16_BLOCK_U_INTERLEAVED) }, | ||
{ DRM_MODIFIER(ALLWINNER, TILED, TILED) }, | ||
}; | ||
static const struct drmFormatModifierVendorInfo drm_format_modifier_vendor_table[] = { | ||
{ DRM_FORMAT_MOD_VENDOR_NONE, "NONE" }, | ||
{ DRM_FORMAT_MOD_VENDOR_INTEL, "INTEL" }, | ||
{ DRM_FORMAT_MOD_VENDOR_AMD, "AMD" }, | ||
{ DRM_FORMAT_MOD_VENDOR_NVIDIA, "NVIDIA" }, | ||
{ DRM_FORMAT_MOD_VENDOR_SAMSUNG, "SAMSUNG" }, | ||
{ DRM_FORMAT_MOD_VENDOR_QCOM, "QCOM" }, | ||
{ DRM_FORMAT_MOD_VENDOR_VIVANTE, "VIVANTE" }, | ||
{ DRM_FORMAT_MOD_VENDOR_BROADCOM, "BROADCOM" }, | ||
{ DRM_FORMAT_MOD_VENDOR_ARM, "ARM" }, | ||
{ DRM_FORMAT_MOD_VENDOR_ALLWINNER, "ALLWINNER" }, | ||
{ DRM_FORMAT_MOD_VENDOR_AMLOGIC, "AMLOGIC" }, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,12 @@ | ||
diff ... libdrm-2.4.73/freedreno/kgsl/kgsl_bo.c | ||
--- libdrm-2.4.73-ref/freedreno/kgsl/kgsl_bo.c Wed Aug 24 12:57:41 2016 | ||
+++ libdrm-2.4.73/freedreno/kgsl/kgsl_bo.c Sat Dec 31 12:27:53 2016 | ||
@@ -32,7 +32,5 @@ | ||
--- libdrm-2.4.109/freedreno/kgsl/kgsl_bo.c.orig 2021-11-25 21:33:02.000000000 +0000 | ||
+++ libdrm-2.4.109/freedreno/kgsl/kgsl_bo.c 2021-12-29 08:58:14.846699228 +0000 | ||
@@ -28,7 +28,9 @@ | ||
|
||
#include "kgsl_priv.h" | ||
|
||
-#include <linux/fb.h> | ||
- | ||
+#ifndef __sun | ||
#include <linux/fb.h> | ||
+#endif | ||
|
||
static int set_memtype(struct fd_device *dev, uint32_t handle, uint32_t flags) | ||
{ | ||
diff ... libdrm-2.4.73/freedreno/kgsl/kgsl_ringbuffer.c | ||
--- libdrm-2.4.73-ref/freedreno/kgsl/kgsl_ringbuffer.c Mon Nov 14 12:55:20 2016 | ||
+++ libdrm-2.4.73/freedreno/kgsl/kgsl_ringbuffer.c Sat Dec 31 18:02:19 2016 | ||
@@ -146,7 +146,8 @@ | ||
ibdesc.gpuaddr = kgsl_ring->bo->gpuaddr; | ||
ibdesc.hostptr = kgsl_ring->bo->hostptr; | ||
ibdesc.sizedwords = 0x145; | ||
- req.timestamp = (uint32_t)kgsl_ring->bo->hostptr; | ||
+ /* This way to avoid GCC -Wpointer-to-int-cast */ | ||
+ req.timestamp = (unsigned int) (unsigned long) kgsl_ring->bo->hostptr; | ||
} | ||
|
||
do { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.