Compare commits

..

8 commits

Author SHA1 Message Date
Samuel Pitoiset
b8b7c57c00 meson: do not mark exynos/omap/tegra as disabled features
Otherwise, using `--auto-features=enabled` wouldn't work because it
only "forces" auto options to be enabled.

This will enable these backends in CI to catch possible build errors.

Closes: https://gitlab.freedesktop.org/mesa/libdrm/-/work_items/128
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
2026-04-27 18:23:20 +02:00
Samuel Pitoiset
7f86e45164 omap: stop including linux/types.h
Nothing uses __u32 and friends, so it should be safe to remove.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
2026-04-27 18:23:04 +02:00
Samuel Pitoiset
cb4669afe8 build: bump version to 2.4.133
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
2026-04-27 17:47:19 +02:00
Rudi Heitbaum
91f7cd0ba2 modetest: fix discards 'const' qualifier from pointer target type
Since glibc-2.43:

For ISO C23, the functions bsearch, memchr, strchr, strpbrk, strrchr,
strstr, wcschr, wcspbrk, wcsrchr, wcsstr and wmemchr that return pointers
into their input arrays now have definitions as macros that return a
pointer to a const-qualified type when the input argument is a pointer
to a const-qualified type.

fixes:
    tests/modetest/modetest.c: In function 'parse_connector':
    tests/modetest/modetest.c:1997:22: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     1997 |                 endp = strpbrk(p, ",@:");
          |                      ^

Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
2026-04-27 17:45:10 +02:00
Rudi Heitbaum
ff12339926 amdgpu: fix discards 'const' qualifier from pointer target type
Since glibc-2.43:

For ISO C23, the functions bsearch, memchr, strchr, strpbrk, strrchr,
strstr, wcschr, wcspbrk, wcsrchr, wcsstr and wmemchr that return pointers
into their input arrays now have definitions as macros that return a
pointer to a const-qualified type when the input argument is a pointer
to a const-qualified type.

fixes:
    amdgpu/amdgpu_asic_id.c: In function 'find_asic_id_table':
    amdgpu/amdgpu_asic_id.c:249:19: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
      249 |         file_name = strrchr(AMDGPU_ASIC_ID_TABLE, '/');
          |                   ^

Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
2026-04-27 17:45:10 +02:00
Samuel Pitoiset
a6e1316d03 add missing include to util_math.h
This fixes a build error with Tegra.

Fixes: 8cc2d09c ("amdgpu: reserve half of the addr space to implement a workaround for PRT")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
2026-04-27 17:42:30 +02:00
Eric Engestrom
31c6232896 ci: bump debian from bookworm to trixie 2026-04-27 17:31:38 +02:00
Eric Engestrom
b1144c21ca ci: fix indentation 2026-04-27 17:31:23 +02:00
7 changed files with 15 additions and 15 deletions

View file

@ -18,9 +18,9 @@ include:
- project: 'freedesktop/ci-templates' - project: 'freedesktop/ci-templates'
ref: *template_sha ref: *template_sha
file: file:
- '/templates/debian.yml' - '/templates/debian.yml'
- '/templates/freebsd.yml' - '/templates/freebsd.yml'
- '/templates/ci-fairy.yml' - '/templates/ci-fairy.yml'
variables: variables:
FDO_UPSTREAM_REPO: mesa/libdrm FDO_UPSTREAM_REPO: mesa/libdrm
@ -39,11 +39,11 @@ stages:
.os-debian: .os-debian:
variables: variables:
BUILD_OS: debian BUILD_OS: debian
FDO_DISTRIBUTION_VERSION: bookworm FDO_DISTRIBUTION_VERSION: trixie-slim
FDO_DISTRIBUTION_PACKAGES: 'build-essential docbook-xsl libatomic-ops-dev libcairo2-dev libcunit1-dev libpciaccess-dev meson ninja-build pkg-config python3 python3-pip python3-wheel python3-setuptools python3-docutils valgrind' FDO_DISTRIBUTION_PACKAGES: 'build-essential docbook-xsl libatomic-ops-dev libcairo2-dev libcunit1-dev libpciaccess-dev meson ninja-build pkg-config python3 python3-pip python3-wheel python3-setuptools python3-docutils valgrind'
# bump this tag every time you change something which requires rebuilding the # bump this tag every time you change something which requires rebuilding the
# base image # base image
FDO_DISTRIBUTION_TAG: "2024-06-25.0" FDO_DISTRIBUTION_TAG: "2026-04-27.0"
.debian-x86_64: .debian-x86_64:
extends: extends:

View file

@ -238,7 +238,7 @@ static char *find_asic_id_table(void)
{ {
// first check the paths in AMDGPU_ASIC_ID_TABLE_PATHS environment variable // first check the paths in AMDGPU_ASIC_ID_TABLE_PATHS environment variable
const char *amdgpu_asic_id_table_paths = secure_getenv("AMDGPU_ASIC_ID_TABLE_PATHS"); const char *amdgpu_asic_id_table_paths = secure_getenv("AMDGPU_ASIC_ID_TABLE_PATHS");
char *file_name = NULL; const char *file_name = NULL;
char *found_path = NULL; char *found_path = NULL;
char **paths = NULL; char **paths = NULL;

View file

@ -26,7 +26,7 @@
project( project(
'libdrm', 'libdrm',
['c'], ['c'],
version : '2.4.132', version : '2.4.133',
license : 'MIT', license : 'MIT',
meson_version : '>= 0.59', meson_version : '>= 0.59',
default_options : ['buildtype=debugoptimized', 'c_std=c11'], default_options : ['buildtype=debugoptimized', 'c_std=c11'],

View file

@ -46,13 +46,11 @@ option(
option( option(
'omap', 'omap',
type : 'feature', type : 'feature',
value : 'disabled',
description : '''Enable support for OMAP's experimental KMS API.''', description : '''Enable support for OMAP's experimental KMS API.''',
) )
option( option(
'exynos', 'exynos',
type : 'feature', type : 'feature',
value : 'disabled',
description : '''Enable support for EXYNOS's experimental KMS API.''', description : '''Enable support for EXYNOS's experimental KMS API.''',
) )
option( option(
@ -63,7 +61,6 @@ option(
option( option(
'tegra', 'tegra',
type : 'feature', type : 'feature',
value : 'disabled',
description : '''Enable support for Tegra's experimental KMS API.''', description : '''Enable support for Tegra's experimental KMS API.''',
) )
option( option(

View file

@ -27,7 +27,6 @@
*/ */
#include <stdlib.h> #include <stdlib.h>
#include <linux/types.h>
#include <errno.h> #include <errno.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <fcntl.h> #include <fcntl.h>

View file

@ -1974,7 +1974,8 @@ static int parse_connector(struct pipe_arg *pipe, const char *arg)
unsigned int len; unsigned int len;
unsigned int i; unsigned int i;
const char *p; const char *p;
char *endp; const char *endp;
char *endp_tok;
pipe->vrefresh = 0; pipe->vrefresh = 0;
pipe->crtc_id = (uint32_t)-1; pipe->crtc_id = (uint32_t)-1;
@ -2012,7 +2013,8 @@ static int parse_connector(struct pipe_arg *pipe, const char *arg)
return -1; return -1;
if (*endp == '@') { if (*endp == '@') {
arg = endp + 1; arg = endp + 1;
pipe->crtc_id = strtoul(arg, &endp, 10); pipe->crtc_id = strtoul(arg, &endp_tok, 10);
endp = endp_tok;
} }
if (*endp != ':') if (*endp != ':')
return -1; return -1;
@ -2028,8 +2030,8 @@ static int parse_connector(struct pipe_arg *pipe, const char *arg)
pipe->mode_str[len] = '\0'; pipe->mode_str[len] = '\0';
if (*p == '-') { if (*p == '-') {
pipe->vrefresh = strtof(p + 1, &endp); pipe->vrefresh = strtof(p + 1, &endp_tok);
p = endp; p = endp_tok;
} }
if (*p == '@') { if (*p == '@') {

View file

@ -24,6 +24,8 @@
#ifndef _UTIL_MATH_H_ #ifndef _UTIL_MATH_H_
#define _UTIL_MATH_H_ #define _UTIL_MATH_H_
#include <stdint.h>
#define MIN2( A, B ) ( (A)<(B) ? (A) : (B) ) #define MIN2( A, B ) ( (A)<(B) ? (A) : (B) )
#define MAX2( A, B ) ( (A)>(B) ? (A) : (B) ) #define MAX2( A, B ) ( (A)>(B) ? (A) : (B) )
#define MAX3( A, B, C ) ((A) > (B) ? MAX2(A, C) : MAX2(B, C)) #define MAX3( A, B, C ) ((A) > (B) ? MAX2(A, C) : MAX2(B, C))