Module: wine Branch: master Commit: c065b4fe0b3622e0c737a4c7c1c514273ad2d8a7 URL: https://gitlab.winehq.org/wine/wine/-/commit/c065b4fe0b3622e0c737a4c7c1c5142...
Author: Zebediah Figura zfigura@codeweavers.com Date: Sun Feb 19 17:33:03 2023 -0600
wined3d: Store push constants in wined3d_buffers in struct wined3d_state.
We will need them in buffers for Vulkan, as well as for software vertex shaders. Currently we simply store them in sysmem buffers and read directly back out of them to load GL uniforms.
This does decrease memory usage a bit for d3d10+.
---
dlls/wined3d/arb_program_shader.c | 69 ++++++++++++++++--------- dlls/wined3d/buffer.c | 2 +- dlls/wined3d/context_gl.c | 2 +- dlls/wined3d/cs.c | 105 +++++++++++++++++++++----------------- dlls/wined3d/glsl_shader.c | 69 ++++++++++++++++--------- dlls/wined3d/stateblock.c | 6 --- dlls/wined3d/wined3d_private.h | 44 ++++++---------- 7 files changed, 166 insertions(+), 131 deletions(-)