diff options
author | Axel Davy <[email protected]> | 2016-10-06 19:42:21 +0200 |
---|---|---|
committer | Axel Davy <[email protected]> | 2016-10-10 23:43:48 +0200 |
commit | 5e7f0ebe29df58c873b2c66674d8cbf0b1046a4d (patch) | |
tree | 48d05189e3550983754afb8a3f88db3c8307ea23 /src/gallium/drivers/softpipe/sp_screen.h | |
parent | 814ca96d0d8692c5260f595be53c4b9aed0989fa (diff) |
softpipe: Cap to 2 GB on 32 bits
On 32 bits system, application memory is quite limited.
softpipe uses application memory. To help prevent memory
exhaustion, limit reported memory availability to 2GB.
Some gallium nine apps do check reported memory by allocating
resources until memory is full. Gallium nine refuses allocations
when 80% of the reported memory limit is used. This change
helps some apps to start.
Signed-off-by: Axel Davy <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_screen.h')
0 files changed, 0 insertions, 0 deletions