[PATCH 1/5] wined3d: Use the command stream state in wined3d_cs_exec_draw().

Sebastian Lackner sebastian at fds-team.de
Tue Feb 28 08:24:26 CST 2017


On 28.02.2017 15:06, Henri Verbeet wrote:
> On 28 February 2017 at 14:52, Sebastian Lackner <sebastian at fds-team.de> wrote:
>> This patch causes corrupted graphics in multiple games. The problem is
>> caused by uninitialized memory in the wined3d_state structs. Currently
>> the struct is only cleared in wined3d_cs_exec_reset_state, but it
>> probably should be cleared always when WINED3D_STATE_INIT_DEFAULT is
>> passed, otherwise the CS and the main state can go out of sync. Could
>> you please take a look?
>>
> It does look like we forget to clear the state structure in
> wined3d_device_reset(). Is fixing that not enough?
> 

Yes, it seems to be sufficient (at least for all games I am aware of).
I have sent the patch used for testing to the ML.

Best regards,
Sebastian




More information about the wine-devel mailing list