Module: wine Branch: master Commit: a19e6265d7dcac0043a1be8b0c3c3ff2129b8061 URL: http://source.winehq.org/git/wine.git/?a=commit;h=a19e6265d7dcac0043a1be8b0c...
Author: Józef Kucia jkucia@codeweavers.com Date: Fri Mar 3 01:30:33 2017 +0100
wined3d: Bind unordered access views even if they are not used by current shaders.
An alternative would be to invalidate unordered access view bindings when a shader is set.
Signed-off-by: Józef Kucia jkucia@codeweavers.com Signed-off-by: Henri Verbeet hverbeet@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/wined3d/context.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index c7f5c66..ef11c5c 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -3410,9 +3410,6 @@ static void context_load_unordered_access_resources(struct wined3d_context *cont
for (i = 0; i < MAX_UNORDERED_ACCESS_VIEWS; ++i) { - if (!shader->reg_maps.uav_resource_info[i].type) - continue; - if (!(view = views[i])) continue;
@@ -3447,12 +3444,10 @@ static void context_bind_unordered_access_views(struct wined3d_context *context,
for (i = 0; i < MAX_UNORDERED_ACCESS_VIEWS; ++i) { - if (!shader->reg_maps.uav_resource_info[i].type) - continue; - if (!(view = views[i])) { - WARN("No unordered access view bound at index %u.\n", i); + if (shader->reg_maps.uav_resource_info[i].type) + WARN("No unordered access view bound at index %u.\n", i); GL_EXTCALL(glBindImageTexture(i, 0, 0, GL_FALSE, 0, GL_READ_WRITE, GL_R8)); continue; }