[PATCH 2/5] wined3d: Send texture dirty region updates through the command stream.

Józef Kucia joseph.kucia at gmail.com
Tue Apr 11 16:38:56 CDT 2017


On Tue, Apr 11, 2017 at 11:24 PM, Henri Verbeet
<hverbeet at codeweavers.com> wrote:
> -    context = context_acquire(texture->resource.device, NULL, 0);
> -    sub_resource_idx = layer * texture->level_count;
> -    for (i = 0; i < texture->level_count; ++i, ++sub_resource_idx)
> -    {
> -        if (!wined3d_texture_load_location(texture, sub_resource_idx, context, texture->resource.map_binding))
> -        {
> -            ERR("Failed to load location %s.\n", wined3d_debug_location(texture->resource.map_binding));
> -            context_release(context);
> -            return E_OUTOFMEMORY;
> -        }
> -        wined3d_texture_invalidate_location(texture, sub_resource_idx, ~texture->resource.map_binding);
> -    }
> -    context_release(context);
> +    wined3d_cs_emit_add_dirty_texture_region(texture->resource.device->cs, texture, layer * texture->level_count);

I think that just "layer" should be passed as the last argument to
wined3d_cs_emit_add_dirty_texture_region().



More information about the wine-devel mailing list