[PATCH v2 3/7] wined3d: Implement lighting with directional lights in process_vertices_strided().

Paul Gofman gofmanp at gmail.com
Fri May 17 13:09:23 CDT 2019


On 5/17/19 20:01, Henri Verbeet wrote:
> On Fri, 17 May 2019 at 20:47, Paul Gofman <gofmanp at gmail.com> wrote:
>> Do you think it is ok then just to use it (providing the first context
>> from device, as I don't have one in process_vertices()), initialize
>> wined3d_ffp_vs_settings and use the fields from there to initialize the
>> similar fieldsin the local structure (as I cannot replace it anyway due
>> to the lights)? I can do that of course, my only concern is that it
>> might end up adding nearly the same amount of code that it saves.
> You can acquire a context by calling "context_acquire(device, NULL,
> 0);", and release it again with "context_release();".

I figured I can't acquire context if CSMT is on because the 
wined3d_process_vertices() is called not from CSMT thread. Does it mean 
we should make wined3d_device_process_vertices() go through CSMT first, 
or I rather make wined3d_ffp_get_vs_settings() work with NULL context 
(by skipping the fields which can't be estimated without)?




More information about the wine-devel mailing list