diff options
author | Marek Olšák <marek.olsak@amd.com> | 2023-02-18 03:40:41 -0500 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-03-03 00:41:48 +0000 |
commit | 6e2e89e6d8870b6c29d1696b4dffd3de713ae494 (patch) | |
tree | a08fbce6dad94c245951cb9b209fb41b9fb718f8 /src/gallium/drivers/radeonsi/si_state.c | |
parent | 03ffb8d77c646c73fedef882605aac671d856718 (diff) | |
download | mesa-6e2e89e6d8870b6c29d1696b4dffd3de713ae494.tar.gz |
amd,radeonsi: change enabled_rb_mask to 64 bits
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21641>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 119c9ace8f5..72e6451a03c 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -2433,7 +2433,7 @@ static bool si_is_format_supported(struct pipe_screen *screen, enum pipe_format /* Chips with 1 RB don't increment occlusion queries at 16x MSAA sample rate, * so don't expose 16 samples there. */ - const unsigned max_eqaa_samples = util_bitcount(sscreen->info.enabled_rb_mask) <= 1 ? 8 : 16; + const unsigned max_eqaa_samples = util_bitcount64(sscreen->info.enabled_rb_mask) <= 1 ? 8 : 16; const unsigned max_samples = 8; /* MSAA support without framebuffer attachments. */ @@ -5540,11 +5540,11 @@ static void si_set_raster_config(struct si_context *sctx, struct si_pm4_state *p { struct si_screen *sscreen = sctx->screen; unsigned num_rb = MIN2(sscreen->info.max_render_backends, 16); - unsigned rb_mask = sscreen->info.enabled_rb_mask; + uint64_t rb_mask = sscreen->info.enabled_rb_mask; unsigned raster_config = sscreen->pa_sc_raster_config; unsigned raster_config_1 = sscreen->pa_sc_raster_config_1; - if (!rb_mask || util_bitcount(rb_mask) >= num_rb) { + if (!rb_mask || util_bitcount64(rb_mask) >= num_rb) { /* Always use the default config when all backends are enabled * (or when we failed to determine the enabled backends). */ |