mesa/src/virtio
Chia-I Wu 572ed22494 venus: use uint32_t in vn_ring_submit
And in vn_ring_write_buffer as well, to fix the assert in
vn_ring_write_buffer.

The ring code uses 32-bit unsigned integers and relies on that their
overflow/underflow behavior is well-defined.  When ring->shared.head is
about to overflow and ring->cur has overflowed, this expression

  ring->cur + size - vn_ring_load_head(ring)

gives an incorrect result when size is 64-bit.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Ryan Neph <ryanneph@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12494>
2021-08-24 08:56:16 -07:00
..
venus-protocol venus: break up vn_device.h 2021-08-02 22:45:45 +00:00
virtio-gpu virgl: add support for anisotropic texture filtering 2021-08-04 10:49:55 +00:00
vtest virgl: update headers from virglrenderer 2021-04-08 17:15:37 +00:00
vulkan venus: use uint32_t in vn_ring_submit 2021-08-24 08:56:16 -07:00
meson.build venus: add driver skeleton 2021-04-08 17:15:37 +00:00