mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
radeonsi: use maximum OFFCHIP_BUFFERING on Vega12
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
parent
4503ff760c
commit
3045c5f274
1 changed files with 8 additions and 1 deletions
|
|
@ -755,7 +755,14 @@ struct pipe_screen *radeonsi_screen_create(struct radeon_winsys *ws,
|
|||
/* This must be one less than the maximum number due to a hw limitation.
|
||||
* Various hardware bugs in SI, CIK, and GFX9 need this.
|
||||
*/
|
||||
unsigned max_offchip_buffers_per_se = double_offchip_buffers ? 127 : 63;
|
||||
unsigned max_offchip_buffers_per_se;
|
||||
|
||||
/* Only certain chips can use the maximum value. */
|
||||
if (sscreen->info.family == CHIP_VEGA12)
|
||||
max_offchip_buffers_per_se = double_offchip_buffers ? 128 : 64;
|
||||
else
|
||||
max_offchip_buffers_per_se = double_offchip_buffers ? 127 : 63;
|
||||
|
||||
unsigned max_offchip_buffers = max_offchip_buffers_per_se *
|
||||
sscreen->info.max_se;
|
||||
unsigned offchip_granularity;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue