mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
radv: Fix vram override with fully visible VRAM.
Fixes: cf2eebdf4f ("radv,gallium: Add driconf option to reduce advertised VRAM size.")
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8915>
This commit is contained in:
parent
eefb18e5fb
commit
bd7d8a77e9
1 changed files with 2 additions and 1 deletions
|
|
@ -153,7 +153,8 @@ radv_get_visible_vram_size(struct radv_physical_device *device)
|
|||
static uint64_t
|
||||
radv_get_vram_size(struct radv_physical_device *device)
|
||||
{
|
||||
return radv_get_adjusted_vram_size(device) - device->rad_info.vram_vis_size;
|
||||
uint64_t total_size = radv_get_adjusted_vram_size(device);
|
||||
return total_size - MIN2(total_size, device->rad_info.vram_vis_size);
|
||||
}
|
||||
|
||||
enum radv_heap {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue