Tha last patch is crashing d3d11 `test_occlusion_query()` on my machine: ``` =>0 0x000003676361f0 wined3d_buffer_load_location+0x50(buffer=0000000000000000, context=0000000002C4F3D0, location=0x2) [/home/jan/work/wine/dlls/wined3d/buffer.c:588] in wined3d (0x00000000000002) 1 0x00000367637493 wined3d_buffer_load_sysmem+0x13(buffer=0000000000000000, context=<internal error>) [/home/jan/work/wine/dlls/wined3d/buffer.c:672] in wined3d (0x00000002b8b418) 2 0x000003676838f0 shader_glsl_load_constants+0x1120(shader_priv=00000000008CCC10, context=0000000002C4F3D0, state=0000000016100058) [/home/jan/work/wine/dlls/wined3d/glsl_shader.c:1537] in wined3d (0x00000002b8b418) 3 0x0000036764580c context_apply_draw_state+0x3fa(indexed=<internal error>, state=<internal error>, device=<internal error>, context=<internal error>) [/home/jan/work/wine/dlls/wined3d/context_gl.c:4322] in wined3d (0x00000016100058) 4 0x0000036764580c draw_primitive+0x5ec(device=<internal error>, state=<internal error>, parameters=<internal error>) [/home/jan/work/wine/dlls/wined3d/context_gl.c:5194] in wined3d (0x00000016100058) 5 0x00000367658632 wined3d_cs_command_unlock(queue=<internal error>, cs=<internal error>) [/home/jan/work/wine/dlls/wined3d/cs.c:3369] in wined3d (0x00000000000007) 6 0x00000367658632 wined3d_cs_execute_next+0xb7(ctx=<register RBX not accessible in this frame>) [/home/jan/work/wine/dlls/wined3d/cs.c:3368] in wined3d (0x00000000000007) 7 0x00000367658632 wined3d_cs_run+0x122(ctx=<register RBX not accessible in this frame>) [/home/jan/work/wine/dlls/wined3d/cs.c:3435] in wined3d (0x00000000000007) 8 0x00000178028a39 BaseThreadInitThunk+0x9(unknown=<internal error>, entry=<internal error>, arg=<internal error>) [/home/jan/work/wine/dlls/kernel32/thread.c:61] in kernel32 (0000000000000000) 9 0x0000017005cd85 __wine_pop_frame(entry=[<register RSP not accessible in this frame>, arg=[<register RSP not accessible in this frame>) [/home/jan/work/wine/include/wine/exception.h:277] in ntdll (0000000000000000) 10 0x0000017005cd85 RtlUserThreadStart+0x85(entry=[<register RSP not accessible in this frame>, arg=[<register RSP not accessible in this frame>) [/home/jan/work/wine/dlls/ntdll/thread.c:294] in ntdll (0000000000000000) 0x000003676361f0 wined3d_buffer_load_location+0x50 [/home/jan/work/wine/dlls/wined3d/buffer.c:588] in wined3d: mov 0xf0(%rbx), %ecx 588 TRACE("buffer %p, context %p, location %s.\n", ```
Let me know if you don't reproduce/need help debugging.