v3dv: only write new uniforms when needed

Graphics / Mesa 3D Graphics Library / Mesa - Iago Toral Quiroga [igalia.com] - 20 November 2020 07:00 UTC

Writing uniform streams is performance sensitive so we should try our best to avoid writing new uniforms if they have not changed. Particularly, if only the vertex buffers have changed, we should not write new uniforms.

This improves performance in vkQuake2 by about 11.15%.

94c00be49fb v3dv: only write new uniforms when needed
src/broadcom/vulkan/v3dv_cmd_buffer.c | 47 +++++++++++++++++++++--------------
src/broadcom/vulkan/v3dv_private.h | 7 ++++++
2 files changed, 35 insertions(+), 19 deletions(-)

Upstream: cgit.freedesktop.org


  • Share