commit | dcca706b4e2d2086b90d77cced0cff6ce4eac953 | [log] [tgz] |
---|---|---|
author | Kenneth Graunke <kenneth@whitecape.org> | Thu Sep 29 11:53:17 2016 -0700 |
committer | Kenneth Graunke <kenneth@whitecape.org> | Tue Jan 10 13:27:31 2017 -0800 |
tree | 89531bc06c26f90eec88834fefa5e4a460e04162 | |
parent | e50d4807a35e6798371e12f745f75419795d3564 [diff] |
anv: Clamp depth buffer dimensions to be at least 1. When there are no framebuffer attachments, fb->width and fb->height will be 0. Subtracting 1 results in 4294967295 which is too large for the field, causing genxml assertions when trying to create the packet. In this case, we can just program it to 1. Caught by dEQP-VK.tessellation.tesscoord.triangles_equal_spacing. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>