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: 7cd606f01b ("r600: add r600_init_screen_caps")
Signed-off-by: Patrick Lerda <patrick9876@free.fr>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33106>
This commit is contained in:
Patrick Lerda
2025-01-18 15:22:32 +01:00
committed by Marge Bot
parent efab1885b7
commit e802793dd5
+2 -2
View File
@@ -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: