Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/6] sna: stop using obsolete type aliases
@ 2024-02-21 18:55 Enrico Weigelt, metux IT consult
  2024-02-21 18:55 ` [PATCH v2 2/6] sna: use GCPtr instead of GC * Enrico Weigelt, metux IT consult
                   ` (6 more replies)
  0 siblings, 7 replies; 12+ messages in thread
From: Enrico Weigelt, metux IT consult @ 2024-02-21 18:55 UTC (permalink / raw)
  To: intel-gfx

The Xserver has been moved to using pixman for all matrix operations, back in
2008, but left some #define's so drivers still compile. Since 1.5 decades have
passed now, it's time to fix remaining drivers still using the old name, so
we can drop these #define's from the Xserver includes.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
---
 src/sna/sna_display.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index 15df51f6..3ff3d2fe 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -208,7 +208,7 @@ struct sna_crtc {
 	bool hwcursor;
 	bool flip_pending;

-	struct pict_f_transform cursor_to_fb, fb_to_cursor;
+	struct pixman_f_transform cursor_to_fb, fb_to_cursor;

 	RegionRec crtc_damage;
 	uint16_t shadow_bo_width, shadow_bo_height;
@@ -2376,7 +2376,7 @@ static bool use_shadow(struct sna *sna, xf86CrtcPtr crtc)
 {
 	RRTransformPtr transform;
 	PictTransform crtc_to_fb;
-	struct pict_f_transform f_crtc_to_fb, f_fb_to_crtc;
+	struct pixman_f_transform f_crtc_to_fb, f_fb_to_crtc;
 	unsigned pitch_limit;
 	BoxRec b;

@@ -2846,7 +2846,7 @@ affine_is_pixel_exact(const struct pixman_f_transform *t)
 static void sna_crtc_randr(xf86CrtcPtr crtc)
 {
 	struct sna_crtc *sna_crtc = to_sna_crtc(crtc);
-	struct pict_f_transform f_crtc_to_fb, f_fb_to_crtc;
+	struct pixman_f_transform f_crtc_to_fb, f_fb_to_crtc;
 	PictTransform crtc_to_fb;
 	PictFilterPtr filter;
 	xFixed *params;
@@ -6666,7 +6666,7 @@ sna_set_cursor_position(ScrnInfoPtr scrn, int x, int y)
 		if (crtc->transform_in_use) {
 			int xhot = sna->cursor.ref->bits->xhot;
 			int yhot = sna->cursor.ref->bits->yhot;
-			struct pict_f_vector v, hot;
+			struct pixman_f_vector v, hot;

 			v.v[0] = x + xhot + .5;
 			v.v[1] = y + yhot + .5;
--
2.39.2


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH v2 2/6] sna: use GCPtr instead of GC *
  2024-02-21 18:55 [PATCH v2 1/6] sna: stop using obsolete type aliases Enrico Weigelt, metux IT consult
@ 2024-02-21 18:55 ` Enrico Weigelt, metux IT consult
  2024-02-21 18:55 ` [PATCH v2 3/6] backlight: use system() instead of System() Enrico Weigelt, metux IT consult
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 12+ messages in thread
From: Enrico Weigelt, metux IT consult @ 2024-02-21 18:55 UTC (permalink / raw)
  To: intel-gfx

Xserver includes have explicit pointer types for quite all kind of structs
(at least those used by drivers), which are used all over the Xserver.
Thus it's much cleaner to use those everywhere.

This commit also clears the road to fix a horrible nightmare of hacks just
needed to circumvent naming clashes between Xserver and Xlib (affecting all
DDXes that are painting on another Xserver): we can simply rename Xserver's
own "GC" type to "GCRec" (the usual naming convention here) and so no trouble
with Xlib's "GC" type anymore. Once this has landed, we're free to do that
without breaking this driver.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
---
 src/sna/sna_accel.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 89b82afa..90a61ab3 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -14300,7 +14300,7 @@ static void
 sna_poly_fill_rect_stippled_n_box__imm(struct sna *sna,
 				       struct kgem_bo *bo,
 				       uint32_t br00, uint32_t br13,
-				       const GC *gc,
+				       const GCPtr gc,
 				       const BoxRec *box,
 				       const DDXPointRec *origin)
 {
@@ -14412,7 +14412,7 @@ sna_poly_fill_rect_stippled_n_box(struct sna *sna,
 				  struct kgem_bo *bo,
 				  struct kgem_bo **tile,
 				  uint32_t br00, uint32_t br13,
-				  const GC *gc,
+				  const GCPtr gc,
 				  const BoxRec *box,
 				  const DDXPointRec *origin)
 {
--
2.39.2


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH v2 3/6] backlight: use system() instead of System()
  2024-02-21 18:55 [PATCH v2 1/6] sna: stop using obsolete type aliases Enrico Weigelt, metux IT consult
  2024-02-21 18:55 ` [PATCH v2 2/6] sna: use GCPtr instead of GC * Enrico Weigelt, metux IT consult
@ 2024-02-21 18:55 ` Enrico Weigelt, metux IT consult
  2024-02-21 18:55 ` [PATCH v2 4/6] intel_device: fix warning on possible buffer overlflow on sprintf() calls Enrico Weigelt, metux IT consult
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 12+ messages in thread
From: Enrico Weigelt, metux IT consult @ 2024-02-21 18:55 UTC (permalink / raw)
  To: intel-gfx

The Xserver's System() function is a special wrapper for calling a program
(xkbcomp) as an unprivileged user, when the Xserver is running as suid-root.
(which today only needed on a few platforms, eg. Solaris). Therefore it's
not suited for being called by arbitrary drivers.

In this specific context it doesn't even much sense, since it's just used
for checking whether pkexec command is present at all (and just should be
used), while the actual exec'ing of the helper is done directly by fork()
and exec() syscalls.

Thus we can safely use standard system() call instead - clearing the road
for dropping System() from Xserver's public/driver API.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
---
 src/backlight.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/backlight.c b/src/backlight.c
index fcbb279f..f416f2a4 100644
--- a/src/backlight.c
+++ b/src/backlight.c
@@ -366,7 +366,7 @@ static int __backlight_helper_init(struct backlight *b, char *iface)
 		return 0;

 	if ((st.st_mode & (S_IFREG | S_ISUID | S_IXUSR)) != (S_IFREG | S_ISUID | S_IXUSR)) {
-		if (System("pkexec --version"))
+		if (system("pkexec --version"))
 			return 0;

 		use_pkexec = 1;
--
2.39.2


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH v2 4/6] intel_device: fix warning on possible buffer overlflow on sprintf() calls
  2024-02-21 18:55 [PATCH v2 1/6] sna: stop using obsolete type aliases Enrico Weigelt, metux IT consult
  2024-02-21 18:55 ` [PATCH v2 2/6] sna: use GCPtr instead of GC * Enrico Weigelt, metux IT consult
  2024-02-21 18:55 ` [PATCH v2 3/6] backlight: use system() instead of System() Enrico Weigelt, metux IT consult
@ 2024-02-21 18:55 ` Enrico Weigelt, metux IT consult
  2024-02-26 18:57   ` Ville Syrjälä
  2024-02-26 19:35   ` Ville Syrjälä
  2024-02-21 18:55 ` [PATCH v2 5/6] stop using obsolete xf86BlockSIGIO() and xf86UnblockSIGIO() Enrico Weigelt, metux IT consult
                   ` (3 subsequent siblings)
  6 siblings, 2 replies; 12+ messages in thread
From: Enrico Weigelt, metux IT consult @ 2024-02-21 18:55 UTC (permalink / raw)
  To: intel-gfx

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
---
 src/intel_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel_device.c b/src/intel_device.c
index f28d3be1..06108ec3 100644
--- a/src/intel_device.c
+++ b/src/intel_device.c
@@ -335,7 +335,7 @@ static int __intel_open_device__major_minor(int _major, int _minor)
 static int __intel_open_device__pci(const struct pci_device *pci)
 {
 	struct stat st;
-	char path[256];
+	char path[PATH_MAX];
 	DIR *dir;
 	struct dirent *de;
 	int base;
--
2.39.2


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH v2 5/6] stop using obsolete xf86BlockSIGIO() and xf86UnblockSIGIO()
  2024-02-21 18:55 [PATCH v2 1/6] sna: stop using obsolete type aliases Enrico Weigelt, metux IT consult
                   ` (2 preceding siblings ...)
  2024-02-21 18:55 ` [PATCH v2 4/6] intel_device: fix warning on possible buffer overlflow on sprintf() calls Enrico Weigelt, metux IT consult
@ 2024-02-21 18:55 ` Enrico Weigelt, metux IT consult
  2024-02-26 18:58   ` Ville Syrjälä
  2024-02-21 18:55 ` [PATCH v2 6/6] uxa: stop calling deprecated xf86_reload_cursors() Enrico Weigelt, metux IT consult
                   ` (2 subsequent siblings)
  6 siblings, 1 reply; 12+ messages in thread
From: Enrico Weigelt, metux IT consult @ 2024-02-21 18:55 UTC (permalink / raw)
  To: intel-gfx

These are just wrappers for calling input_lock()/input_unlock() and marked
deprecated for quite a while now.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
---
 src/sna/sna_display.c  | 5 +++--
 src/uxa/intel_driver.c | 4 ++--
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index 3ff3d2fe..460fb1ca 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -1156,11 +1156,12 @@ static inline void sigio_unblock(int was_blocked)
 #include <xf86_OSproc.h>
 static inline int sigio_block(void)
 {
-	return xf86BlockSIGIO();
+	input_lock();
+	return 0;
 }
 static inline void sigio_unblock(int was_blocked)
 {
-	xf86UnblockSIGIO(was_blocked);
+	input_unlock();
 }
 #endif

diff --git a/src/uxa/intel_driver.c b/src/uxa/intel_driver.c
index 9c3fe85f..79105b89 100644
--- a/src/uxa/intel_driver.c
+++ b/src/uxa/intel_driver.c
@@ -641,10 +641,10 @@ redisplay_dirty(ScreenPtr screen, PixmapDirtyUpdatePtr dirty)
         intel_flush(intel);
 	if (!intel->has_prime_vmap_flush) {
 		drm_intel_bo *bo = intel_uxa_get_pixmap_bo(PixmapDirtyPrimary(dirty));
-		was_blocked = xf86BlockSIGIO();
+		input_lock();
 		drm_intel_bo_map(bo, FALSE);
 		drm_intel_bo_unmap(bo);
-		xf86UnblockSIGIO(was_blocked);
+		input_unlock();
 	}

 	DamageRegionProcessPending(&PixmapDirtyDst(dirty)->drawable);
--
2.39.2


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH v2 6/6] uxa: stop calling deprecated xf86_reload_cursors()
  2024-02-21 18:55 [PATCH v2 1/6] sna: stop using obsolete type aliases Enrico Weigelt, metux IT consult
                   ` (3 preceding siblings ...)
  2024-02-21 18:55 ` [PATCH v2 5/6] stop using obsolete xf86BlockSIGIO() and xf86UnblockSIGIO() Enrico Weigelt, metux IT consult
@ 2024-02-21 18:55 ` Enrico Weigelt, metux IT consult
  2024-02-26 18:58   ` Ville Syrjälä
  2024-02-21 22:51 ` ✗ Fi.CI.BUILD: failure for series starting with [v2,1/6] sna: stop using obsolete type aliases Patchwork
  2024-02-26 18:57 ` [PATCH v2 1/6] " Ville Syrjälä
  6 siblings, 1 reply; 12+ messages in thread
From: Enrico Weigelt, metux IT consult @ 2024-02-21 18:55 UTC (permalink / raw)
  To: intel-gfx

the function has become a no-op, it's former duties are done automatically.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
---
 src/uxa/intel_display.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/uxa/intel_display.c b/src/uxa/intel_display.c
index ba4b8d87..ef5962eb 100644
--- a/src/uxa/intel_display.c
+++ b/src/uxa/intel_display.c
@@ -393,9 +393,6 @@ intel_crtc_apply(xf86CrtcPtr crtc)
 		}
 	}

-	if (scrn->pScreen)
-		xf86_reload_cursors(scrn->pScreen);
-
 done:
 	free(output_ids);
 	return ret;
--
2.39.2


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* ✗ Fi.CI.BUILD: failure for series starting with [v2,1/6] sna: stop using obsolete type aliases
  2024-02-21 18:55 [PATCH v2 1/6] sna: stop using obsolete type aliases Enrico Weigelt, metux IT consult
                   ` (4 preceding siblings ...)
  2024-02-21 18:55 ` [PATCH v2 6/6] uxa: stop calling deprecated xf86_reload_cursors() Enrico Weigelt, metux IT consult
@ 2024-02-21 22:51 ` Patchwork
  2024-02-26 18:57 ` [PATCH v2 1/6] " Ville Syrjälä
  6 siblings, 0 replies; 12+ messages in thread
From: Patchwork @ 2024-02-21 22:51 UTC (permalink / raw)
  To: Enrico Weigelt, metux IT consult; +Cc: intel-gfx

== Series Details ==

Series: series starting with [v2,1/6] sna: stop using obsolete type aliases
URL   : https://patchwork.freedesktop.org/series/130225/
State : failure

== Summary ==

Error: patch https://patchwork.freedesktop.org/api/1.0/series/130225/revisions/1/mbox/ not applied
Applying: sna: stop using obsolete type aliases
error: sha1 information is lacking or useless (src/sna/sna_display.c).
error: could not build fake ancestor
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 sna: stop using obsolete type aliases
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Build failed, no error log produced



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH v2 1/6] sna: stop using obsolete type aliases
  2024-02-21 18:55 [PATCH v2 1/6] sna: stop using obsolete type aliases Enrico Weigelt, metux IT consult
                   ` (5 preceding siblings ...)
  2024-02-21 22:51 ` ✗ Fi.CI.BUILD: failure for series starting with [v2,1/6] sna: stop using obsolete type aliases Patchwork
@ 2024-02-26 18:57 ` Ville Syrjälä
  6 siblings, 0 replies; 12+ messages in thread
From: Ville Syrjälä @ 2024-02-26 18:57 UTC (permalink / raw)
  To: Enrico Weigelt, metux IT consult; +Cc: intel-gfx

On Wed, Feb 21, 2024 at 07:55:45PM +0100, Enrico Weigelt, metux IT consult wrote:
> The Xserver has been moved to using pixman for all matrix operations, back in
> 2008, but left some #define's so drivers still compile.

Reference to the actual commit would help.

> Since 1.5 decades have
> passed now, it's time to fix remaining drivers still using the old name, so
> we can drop these #define's from the Xserver includes.
> 
> Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
> ---
>  src/sna/sna_display.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
> index 15df51f6..3ff3d2fe 100644
> --- a/src/sna/sna_display.c
> +++ b/src/sna/sna_display.c
> @@ -208,7 +208,7 @@ struct sna_crtc {
>  	bool hwcursor;
>  	bool flip_pending;
> 
> -	struct pict_f_transform cursor_to_fb, fb_to_cursor;
> +	struct pixman_f_transform cursor_to_fb, fb_to_cursor;
> 
>  	RegionRec crtc_damage;
>  	uint16_t shadow_bo_width, shadow_bo_height;
> @@ -2376,7 +2376,7 @@ static bool use_shadow(struct sna *sna, xf86CrtcPtr crtc)
>  {
>  	RRTransformPtr transform;
>  	PictTransform crtc_to_fb;
> -	struct pict_f_transform f_crtc_to_fb, f_fb_to_crtc;
> +	struct pixman_f_transform f_crtc_to_fb, f_fb_to_crtc;
>  	unsigned pitch_limit;
>  	BoxRec b;
> 
> @@ -2846,7 +2846,7 @@ affine_is_pixel_exact(const struct pixman_f_transform *t)
>  static void sna_crtc_randr(xf86CrtcPtr crtc)
>  {
>  	struct sna_crtc *sna_crtc = to_sna_crtc(crtc);
> -	struct pict_f_transform f_crtc_to_fb, f_fb_to_crtc;
> +	struct pixman_f_transform f_crtc_to_fb, f_fb_to_crtc;
>  	PictTransform crtc_to_fb;
>  	PictFilterPtr filter;
>  	xFixed *params;
> @@ -6666,7 +6666,7 @@ sna_set_cursor_position(ScrnInfoPtr scrn, int x, int y)
>  		if (crtc->transform_in_use) {
>  			int xhot = sna->cursor.ref->bits->xhot;
>  			int yhot = sna->cursor.ref->bits->yhot;
> -			struct pict_f_vector v, hot;
> +			struct pixman_f_vector v, hot;
> 
>  			v.v[0] = x + xhot + .5;
>  			v.v[1] = y + yhot + .5;
> --
> 2.39.2

-- 
Ville Syrjälä
Intel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH v2 4/6] intel_device: fix warning on possible buffer overlflow on sprintf() calls
  2024-02-21 18:55 ` [PATCH v2 4/6] intel_device: fix warning on possible buffer overlflow on sprintf() calls Enrico Weigelt, metux IT consult
@ 2024-02-26 18:57   ` Ville Syrjälä
  2024-02-26 19:35   ` Ville Syrjälä
  1 sibling, 0 replies; 12+ messages in thread
From: Ville Syrjälä @ 2024-02-26 18:57 UTC (permalink / raw)
  To: Enrico Weigelt, metux IT consult; +Cc: intel-gfx

On Wed, Feb 21, 2024 at 07:55:48PM +0100, Enrico Weigelt, metux IT consult wrote:

Please write an actual commit message.

> Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
> ---
>  src/intel_device.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/intel_device.c b/src/intel_device.c
> index f28d3be1..06108ec3 100644
> --- a/src/intel_device.c
> +++ b/src/intel_device.c
> @@ -335,7 +335,7 @@ static int __intel_open_device__major_minor(int _major, int _minor)
>  static int __intel_open_device__pci(const struct pci_device *pci)
>  {
>  	struct stat st;
> -	char path[256];
> +	char path[PATH_MAX];
>  	DIR *dir;
>  	struct dirent *de;
>  	int base;
> --
> 2.39.2

-- 
Ville Syrjälä
Intel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH v2 5/6] stop using obsolete xf86BlockSIGIO() and xf86UnblockSIGIO()
  2024-02-21 18:55 ` [PATCH v2 5/6] stop using obsolete xf86BlockSIGIO() and xf86UnblockSIGIO() Enrico Weigelt, metux IT consult
@ 2024-02-26 18:58   ` Ville Syrjälä
  0 siblings, 0 replies; 12+ messages in thread
From: Ville Syrjälä @ 2024-02-26 18:58 UTC (permalink / raw)
  To: Enrico Weigelt, metux IT consult; +Cc: intel-gfx

On Wed, Feb 21, 2024 at 07:55:49PM +0100, Enrico Weigelt, metux IT consult wrote:
> These

Please spell out what "these" are.

> are just wrappers for calling input_lock()/input_unlock() and marked
> deprecated for quite a while now.
> 
> Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
> ---
>  src/sna/sna_display.c  | 5 +++--
>  src/uxa/intel_driver.c | 4 ++--
>  2 files changed, 5 insertions(+), 4 deletions(-)
> 
> diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
> index 3ff3d2fe..460fb1ca 100644
> --- a/src/sna/sna_display.c
> +++ b/src/sna/sna_display.c
> @@ -1156,11 +1156,12 @@ static inline void sigio_unblock(int was_blocked)
>  #include <xf86_OSproc.h>
>  static inline int sigio_block(void)
>  {
> -	return xf86BlockSIGIO();
> +	input_lock();
> +	return 0;
>  }
>  static inline void sigio_unblock(int was_blocked)
>  {
> -	xf86UnblockSIGIO(was_blocked);
> +	input_unlock();
>  }
>  #endif
> 
> diff --git a/src/uxa/intel_driver.c b/src/uxa/intel_driver.c
> index 9c3fe85f..79105b89 100644
> --- a/src/uxa/intel_driver.c
> +++ b/src/uxa/intel_driver.c
> @@ -641,10 +641,10 @@ redisplay_dirty(ScreenPtr screen, PixmapDirtyUpdatePtr dirty)
>          intel_flush(intel);
>  	if (!intel->has_prime_vmap_flush) {
>  		drm_intel_bo *bo = intel_uxa_get_pixmap_bo(PixmapDirtyPrimary(dirty));
> -		was_blocked = xf86BlockSIGIO();
> +		input_lock();
>  		drm_intel_bo_map(bo, FALSE);
>  		drm_intel_bo_unmap(bo);
> -		xf86UnblockSIGIO(was_blocked);
> +		input_unlock();
>  	}
> 
>  	DamageRegionProcessPending(&PixmapDirtyDst(dirty)->drawable);
> --
> 2.39.2

-- 
Ville Syrjälä
Intel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH v2 6/6] uxa: stop calling deprecated xf86_reload_cursors()
  2024-02-21 18:55 ` [PATCH v2 6/6] uxa: stop calling deprecated xf86_reload_cursors() Enrico Weigelt, metux IT consult
@ 2024-02-26 18:58   ` Ville Syrjälä
  0 siblings, 0 replies; 12+ messages in thread
From: Ville Syrjälä @ 2024-02-26 18:58 UTC (permalink / raw)
  To: Enrico Weigelt, metux IT consult; +Cc: intel-gfx

On Wed, Feb 21, 2024 at 07:55:50PM +0100, Enrico Weigelt, metux IT consult wrote:

<Start of the sentence missing here>

> the function has become a no-op, it's former duties are done automatically.
> 
> Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
> ---
>  src/uxa/intel_display.c | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/src/uxa/intel_display.c b/src/uxa/intel_display.c
> index ba4b8d87..ef5962eb 100644
> --- a/src/uxa/intel_display.c
> +++ b/src/uxa/intel_display.c
> @@ -393,9 +393,6 @@ intel_crtc_apply(xf86CrtcPtr crtc)
>  		}
>  	}
> 
> -	if (scrn->pScreen)
> -		xf86_reload_cursors(scrn->pScreen);
> -
>  done:
>  	free(output_ids);
>  	return ret;
> --
> 2.39.2

-- 
Ville Syrjälä
Intel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH v2 4/6] intel_device: fix warning on possible buffer overlflow on sprintf() calls
  2024-02-21 18:55 ` [PATCH v2 4/6] intel_device: fix warning on possible buffer overlflow on sprintf() calls Enrico Weigelt, metux IT consult
  2024-02-26 18:57   ` Ville Syrjälä
@ 2024-02-26 19:35   ` Ville Syrjälä
  1 sibling, 0 replies; 12+ messages in thread
From: Ville Syrjälä @ 2024-02-26 19:35 UTC (permalink / raw)
  To: Enrico Weigelt, metux IT consult; +Cc: intel-gfx

On Wed, Feb 21, 2024 at 07:55:48PM +0100, Enrico Weigelt, metux IT consult wrote:
> Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
> ---
>  src/intel_device.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/intel_device.c b/src/intel_device.c
> index f28d3be1..06108ec3 100644
> --- a/src/intel_device.c
> +++ b/src/intel_device.c
> @@ -335,7 +335,7 @@ static int __intel_open_device__major_minor(int _major, int _minor)
>  static int __intel_open_device__pci(const struct pci_device *pci)
>  {
>  	struct stat st;
> -	char path[256];
> +	char path[PATH_MAX];

I had a slightly different take on this in
https://patchwork.freedesktop.org/series/115348/

I suppose I should actually push that stuff...

>  	DIR *dir;
>  	struct dirent *de;
>  	int base;
> --
> 2.39.2

-- 
Ville Syrjälä
Intel

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-02-26 19:35 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-21 18:55 [PATCH v2 1/6] sna: stop using obsolete type aliases Enrico Weigelt, metux IT consult
2024-02-21 18:55 ` [PATCH v2 2/6] sna: use GCPtr instead of GC * Enrico Weigelt, metux IT consult
2024-02-21 18:55 ` [PATCH v2 3/6] backlight: use system() instead of System() Enrico Weigelt, metux IT consult
2024-02-21 18:55 ` [PATCH v2 4/6] intel_device: fix warning on possible buffer overlflow on sprintf() calls Enrico Weigelt, metux IT consult
2024-02-26 18:57   ` Ville Syrjälä
2024-02-26 19:35   ` Ville Syrjälä
2024-02-21 18:55 ` [PATCH v2 5/6] stop using obsolete xf86BlockSIGIO() and xf86UnblockSIGIO() Enrico Weigelt, metux IT consult
2024-02-26 18:58   ` Ville Syrjälä
2024-02-21 18:55 ` [PATCH v2 6/6] uxa: stop calling deprecated xf86_reload_cursors() Enrico Weigelt, metux IT consult
2024-02-26 18:58   ` Ville Syrjälä
2024-02-21 22:51 ` ✗ Fi.CI.BUILD: failure for series starting with [v2,1/6] sna: stop using obsolete type aliases Patchwork
2024-02-26 18:57 ` [PATCH v2 1/6] " Ville Syrjälä

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox