Commit a19e6265 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

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: 's avatarJózef Kucia <jkucia@codeweavers.com> Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 9db12225
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment