[PATCH 2/5] wined3d: Store sub-resource dimensions in a separate wined3d_sub_resource structure.

Henri Verbeet hverbeet at gmail.com
Thu Jun 24 10:03:07 CDT 2021


On Wed, 23 Jun 2021 at 23:39, Zebediah Figura <z.figura12 at gmail.com> wrote:
> ---
> I don't know if there's an advantage to caching these, although it seems
> plausible, but mostly this is just for ease of access.
>
Well, we already have wined3d_texture_get_sub_resource_desc(). We
could certainly extend that to buffers and expose it through the
resource ops.

About caching the values I mostly feel the same here as in patch 1/5;
it's fine if it makes a performance difference, but otherwise it
doesn't seem worth it.



More information about the wine-devel mailing list