winsys/amdgpu: fix the type of memory usage counters
If the 32-bit types overflowed, the driver could submit an IB that uses much more memory than is available. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
This commit is contained in:
parent
421b809db1
commit
5fb0180592
|
@ -77,8 +77,8 @@ struct amdgpu_cs {
|
|||
|
||||
int buffer_indices_hashlist[512];
|
||||
|
||||
unsigned used_vram;
|
||||
unsigned used_gart;
|
||||
uint64_t used_vram;
|
||||
uint64_t used_gart;
|
||||
|
||||
unsigned max_dependencies;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue