[PATCH 1/3] wined3d: Handle discarded buffers in buffer_resource_sub_resource_map().

Zebediah Figura (she/her) zfigura at codeweavers.com
Thu Jan 27 11:11:11 CST 2022


On 1/27/22 07:13, Henri Verbeet wrote:
>>> What is the issue exactly? Is it that buffer->buffer_object may not
>>> have been created yet for discarded resources?
>>
>> More generally, no location may yet have been prepared. In particular
>> after patch 3/3 no location will be prepared on creation.
> 
> It probably makes sense to check for WINED3D_BUFFER_USE_BO instead of
> buffer->buffer_object then, and add wined3d_buffer_prepare_location()
> calls to paths that don't already call wined3d_buffer_load_location().

Sure, that makes sense.



More information about the wine-devel mailing list