diff options
author | Bas Nieuwenhuizen <[email protected]> | 2017-07-30 23:26:11 +0200 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-08-03 00:19:08 +0100 |
commit | b84abbfff712fbd024652a9c4425735661d3a121 (patch) | |
tree | e0815b3344076da9b73c414b0d015644df32c3ae /progs/samples/accum.c | |
parent | 4d27d9cb26a6f9e576274b82dd1600cfe0b0c9fe (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]>
(cherry picked from commit 8229706ad86b27ed571f17872006a488fcd35378)
[Emil Velikov: branch uses radeon_info::visible_vram_size]
Signed-off-by: Emil Velikov <[email protected]>
Conflicts:
src/amd/vulkan/radv_device.c
Diffstat (limited to 'progs/samples/accum.c')
0 files changed, 0 insertions, 0 deletions