[PATCH 1/5] wined3d: Do not allocate system memory for resources by default.

Henri Verbeet hverbeet at gmail.com
Tue Apr 10 05:42:47 CDT 2018


On 10 April 2018 at 12:29, Józef Kucia <joseph.kucia at gmail.com> wrote:
> It's a small step to reduce unncessary system memory allocations in
> wined3d. We shouldn't need to allocate system memory to initialize
> content for GPU resources, instead we should use glClearBuffer()
> and glClearTexImage().
>
If it's any help, one approach I've been considering for a while would
be to essentially take a page out of the fast clear book, and
introduce a WINED3D_LOCATION_CLEARED resource location. It would move
the responsibility of actually clearing resources to the location
management code, and ultimately the blitter, and would allow skipping
clearing resources entirely for cases where resources are subsequently
overwritten completely.



More information about the wine-devel mailing list