mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
radeonsi: add has_gfx_compute property to si_screen
Reviewed-by: David Rosca <david.rosca@amd.com> Reviewed-by: Qiang Yu <yuq825@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41133>
This commit is contained in:
parent
931fc57f2a
commit
3a1c466084
3 changed files with 10 additions and 1 deletions
|
|
@ -134,7 +134,9 @@ static void si_init_renderer_string(struct si_screen *sscreen)
|
|||
"ACO";
|
||||
|
||||
snprintf(sscreen->renderer_string, sizeof(sscreen->renderer_string),
|
||||
"%s (radeonsi, %s, %s, DRM %i.%i%s)", first_name, second_name, compiler_name,
|
||||
"%s (radeonsi, %s%s%s, DRM %i.%i%s)", first_name, second_name,
|
||||
sscreen->has_gfx_compute ? ", " : "",
|
||||
sscreen->has_gfx_compute ? compiler_name : "",
|
||||
sscreen->info.drm_major, sscreen->info.drm_minor, kernel_version);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1397,6 +1397,10 @@ static struct pipe_screen *radeonsi_screen_create_impl(struct radeon_winsys *ws,
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef HAVE_GFX_COMPUTE
|
||||
sscreen->has_gfx_compute = true;
|
||||
#endif
|
||||
|
||||
util_idalloc_mt_init_tc(&sscreen->buffer_ids);
|
||||
|
||||
/* Set functions first. */
|
||||
|
|
|
|||
|
|
@ -518,6 +518,9 @@ struct si_screen {
|
|||
unsigned eqaa_force_color_samples;
|
||||
unsigned pbb_context_states_per_bin;
|
||||
unsigned pbb_persistent_states_per_bin;
|
||||
|
||||
bool has_gfx_compute;
|
||||
|
||||
bool has_draw_indirect_multi;
|
||||
bool dpbb_allowed;
|
||||
bool use_ngg;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue