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:
Marek Olšák 2015-08-17 19:55:57 +02:00
parent 421b809db1
commit 5fb0180592
1 changed files with 2 additions and 2 deletions

View File

@ -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;
};