Commit b4906230 authored by Jan Sikorski's avatar Jan Sikorski Committed by Alexandre Julliard

wined3d: Acquire references to mip-map generation shader resource views for…

wined3d: Acquire references to mip-map generation shader resource views for command lists by inspecting CS packets. Signed-off-by: 's avatarJan Sikorski <jsikorski@codeweavers.com> Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent a33ed42f
......@@ -3714,6 +3714,15 @@ static void wined3d_cs_packet_decref_objects(const struct wined3d_cs_packet *pac
break;
}
case WINED3D_CS_OP_GENERATE_MIPMAPS:
{
struct wined3d_cs_generate_mipmaps *op;
op = (struct wined3d_cs_generate_mipmaps *)packet->data;
wined3d_shader_resource_view_decref(op->view);
break;
}
default:
break;
}
......@@ -3946,6 +3955,15 @@ static void wined3d_cs_packet_incref_objects(struct wined3d_cs_packet *packet)
break;
}
case WINED3D_CS_OP_GENERATE_MIPMAPS:
{
struct wined3d_cs_generate_mipmaps *op;
op = (struct wined3d_cs_generate_mipmaps *)packet->data;
wined3d_shader_resource_view_incref(op->view);
break;
}
default:
break;
}
......
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