diff options
author | Bas Nieuwenhuizen <[email protected]> | 2017-07-30 23:26:11 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2017-07-31 22:50:13 +0200 |
commit | 8229706ad86b27ed571f17872006a488fcd35378 (patch) | |
tree | 3b32003bcff633b51491e6ac20ba06ef7eb179ce /src/gallium | |
parent | d0540d5b8528215d77e6a43d70bfc5e0239c430e (diff) |
radv: Don't underflow non-visible VRAM size.
In some APU situations the reported visible size can be larger than
VRAM size. This properly clamps the value.
Surprisingly both CTS and spec seem to allow a heap type with size 0,
so this seemed like the easiest option to me.
Signed-off-by: Bas Nieuwenhuizen <[email protected]>
Fixes: 4ae84efbc5c "radv: Use enum for memory heaps."
Reviewed-by: Dave Airlie <[email protected]>
Reviewed-by: Michel Dänzer <[email protected]>
Tested-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium')
0 files changed, 0 insertions, 0 deletions