From e802793dd5089ab61bf03b39b1b085a132070ffe Mon Sep 17 00:00:00 2001 From: Patrick Lerda Date: Sat, 18 Jan 2025 15:22:32 +0100 Subject: [PATCH] r600: fix r600_init_screen_caps() has_streamout issue Indeed, has_streamout is not yet properly initialized at the time of the call of r600_init_screen_caps(). This change fixes this issue. Here is the issue visible on palm at the glxinfo level; the right column is affected: Preferred profile: core (0x1) | Preferred profile: compat (0x2) Max core profile version: 4.5 | Max core profile version: 0.0 Max compat profile version: 4.5 | Max compat profile version: 2.1 Max GLES1 profile version: 1.1 Max GLES1 profile version: 1.1 Max GLES[23] profile version: 3.1 | Max GLES[23] profile version: 2.0 Fixes: 7cd606f01b99 ("r600: add r600_init_screen_caps") Signed-off-by: Patrick Lerda Reviewed-by: Qiang Yu Part-of: --- src/gallium/drivers/r600/r600_pipe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index d549457c644..cf3b9b08b18 100644 --- a/src/gallium/drivers/r600/r600_pipe.c +++ b/src/gallium/drivers/r600/r600_pipe.c @@ -605,8 +605,6 @@ struct pipe_screen *r600_screen_create(struct radeon_winsys *ws, rscreen->b.b.is_format_supported = r600_is_format_supported; } - r600_init_screen_caps(rscreen); - rscreen->b.debug_flags |= debug_get_flags_option("R600_DEBUG", r600_debug_options, 0); if (debug_get_bool_option("R600_DEBUG_COMPUTE", false)) rscreen->b.debug_flags |= DBG_COMPUTE; @@ -627,6 +625,8 @@ struct pipe_screen *r600_screen_create(struct radeon_winsys *ws, rscreen->has_msaa = true; + r600_init_screen_caps(rscreen); + /* MSAA support. */ switch (rscreen->b.gfx_level) { case R600: