Commit graph

159569 commits

Author SHA1 Message Date
Rémi Bernon 4a3f170c03 winegstreamer: Use IWMSyncReader2_SetReadStreamSamples in the async reader. 2022-09-23 15:13:56 +02:00
Rémi Bernon b69717e797 winegstreamer: Use IWMSyncReader2_GetReadStreamSamples in the async reader. 2022-09-23 15:13:56 +02:00
Rémi Bernon cbd7be3f19 winegstreamer: Implement IWMSyncReader2_GetReadStreamSamples. 2022-09-23 15:13:56 +02:00
Rémi Bernon e961e082ab winegstreamer: Query the IWMSyncReader2 interface in the async reader. 2022-09-23 15:13:56 +02:00
Rémi Bernon 2c7fdd25e0 mf/tests: Dump image samples with a BMP header and RGB data.
Allowing easier preview of NV12 / I420 images as well.
2022-09-23 15:13:46 +02:00
Rémi Bernon 0402d5b5a8 mf/tests: Rename transform frame dumps to BMP. 2022-09-23 15:13:45 +02:00
Rémi Bernon ec556ff54b mf/tests: Check all produced output IMFSample at the same time.
Keeping them in a IMFCollection.
2022-09-23 15:13:44 +02:00
Rémi Bernon 05d6bfb311 mf/tests: Factor IMFSample attributes checks in check_mf_sample. 2022-09-23 15:13:43 +02:00
Rémi Bernon 62ae3bcfe3 mf/tests: Factor IMFSample checks in a check_mf_sample helper. 2022-09-23 15:13:43 +02:00
Rémi Bernon d0478f69c3 mf/tests: Introduce a new dump_mf_sample helper. 2022-09-23 15:13:43 +02:00
Rémi Bernon d27f2db7d5 mf/tests: Introduce a new load_resource helper. 2022-09-23 15:13:43 +02:00
Rémi Bernon 8381bcb580 mf/tests: Factor IMFTransform_ProcessOutput checks together. 2022-09-23 15:13:43 +02:00
Rémi Bernon 27adb7aa28 mf/tests: Use separate variables for input / output samples. 2022-09-23 15:13:41 +02:00
Eric Pouech 52a83ffe4e avifil32: Fix GCC 12.2 warning (-Warray-bounds).
Since struct _IAVIStreamImpl has a pointer to a WAVEFORMATEX,
GCC 12.2 emits warning when dereferencing that pointer when
the block has been allocated with sizeof(PCMWAVEFORMAT).

The warning is fixed by always allocating with sizeof(WAVEFORMATEX).
This will overallocate in case of a PCM stream.

The alternative would have been to store in struct _IAVIStreamImpl
a pointer to PCMWAVEFORMAT instead, and add the casting to a
WAVEFORMATEX when needed. That would clutter the code IMO since most
of the ACM APIs expect a LPWAVEFORMATEX.

/home/eric/work/wine/dlls/avifil32/acmstream.c: In function 'AVIFILE_OpenCompressor':
/home/eric/work/wine/dlls/avifil32/acmstream.c:105:24: warning: array subscript 'struct tWAVEFORMATEX[0]' is partly outside array bounds of 'unsigned char[16]' [-Warray-bounds]
  105 |       This->lpOutFormat->wFormatTag = WAVE_FORMAT_PCM;
      |                        ^~
/home/eric/work/wine/dlls/avifil32/acmstream.c:101:27: note: object of size 16 allocated by 'HeapAlloc'
  101 |       This->lpOutFormat = HeapAlloc(GetProcessHeap(), 0, This->cbOutFormat);
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-09-22 21:09:05 +02:00
Santino Mazza e8390a102a ntdll/tests: Test for NtRegLoadKey roothandle parameter. 2022-09-22 17:58:16 +02:00
Santino Mazza 8230742016 include: Define REG_APP_HIVE and REG_PROCESS_PRIVATE. 2022-09-22 17:58:12 +02:00
Owen Rudge 283cefe242 secur32: Implement basic functionality for LsaGetLogonSessionData. 2022-09-22 17:57:58 +02:00
Owen Rudge 402b8473c9 secur32/tests: Add tests for LsaGetLogonSessionData. 2022-09-22 17:57:58 +02:00
Witold Baryluk b819b96617 ntdll: Keep pagemap file open after first use of NtQueryVirtualMemory(MemoryWorkingSetExInformation). 2022-09-22 17:57:32 +02:00
Witold Baryluk ffab9d9747 ntdll: Use pread in NtQueryVirtualMemory(MemoryWorkingSetExInformation).
1 syscall instead of 2 syscalls. Faster and simpler code.
2022-09-22 17:57:30 +02:00
Witold Baryluk 96a4a2b4c4 ntdll: Do not use hardcoded page shift in NtQueryVirtualMemory(MemoryWorkingSetExInformation). 2022-09-22 17:57:28 +02:00
Witold Baryluk ee706c3e25 ntdll: Speed up NtQueryVirtualMemory(MemoryWorkingSetExInformation) by conditional page check.
Legends game periodically (every 30 seconds) calls this function
with up to 22k virtual addresses. All but 1 of them is valid. Due to
amount of queries addresses, and cost of seek+read, this causes this
function to take up to about 50ms. So framerate drops from ~150 FPS to
20FPS for about a second.

As far as I can see, returning 0 entries from this function, still makes
Apex Legend work.

But keep code correct, and optimise it by only performing pagemap read
when the address is valid.

This change get_working_set_ex reduces peek wall clock runtime from 57ms
to 0.29ms.

Tested on Linux, but similar change done for the BSD part.

Signed-off-by: Witold Baryluk <witold.baryluk@gmail.com>
2022-09-22 17:57:26 +02:00
Etaash Mathamsetty e2a5bf7540 ntoskrnl: Implement KeGetCurrentProcessorNumberEx. 2022-09-21 21:29:20 +02:00
Hans Leidekker 7de69f49c6 secur32/tests: Fix test failure caused by expired client certificate. 2022-09-21 21:26:50 +02:00
Hans Leidekker 89225483fe winhttp/tests: Fix test failure caused by expired client certificate. 2022-09-21 21:26:50 +02:00
Paul Gofman 1120a1cb29 crypt32: Support CRYPT_STRING_HEX in CryptStringToBinary(). 2022-09-21 21:26:37 +02:00
Paul Gofman a79ec1c584 crypt32: Support CRYPT_STRING_HEXRAW in CryptBinaryToStringA(). 2022-09-21 21:26:37 +02:00
Zebediah Figura cd7a9386ec d3d10core/tests: Ignore random WARP failures in test_pipeline_statistics_query.
This is the d3d10core counterpart to d741742e32.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
2022-09-21 21:26:05 +02:00
Zebediah Figura d89a017056 d3d11/tests: Use a pixel shader that consumes SV_Position in test_pipeline_statistics_query().
Some drivers (AMD Radeon RX 6700 XT, with radeonsi from Mesa 22.2.0-rc3) emit
less than one invocation per pixel, presumably because they detect that the
shader control flow is uniform for all pixels. Having the control flow depend on
SV_Position avoids this test failure.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
2022-09-21 21:26:03 +02:00
Zebediah Figura 34bd0dd070 d3d10core/tests: Use a pixel shader that consumes SV_Position in test_pipeline_statistics_query().
Some drivers (AMD Radeon RX 6700 XT, with radeonsi from Mesa 22.2.0-rc3) emit
less than one invocation per pixel, presumably because they detect that the
shader control flow is uniform for all pixels. Having the control flow depend on
SV_Position avoids this test failure.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
2022-09-21 21:26:01 +02:00
André Zwing b07e06e297 ntdll: Fix ARM vs AMD64 typo. 2022-09-20 20:53:27 +02:00
David Kahurani 903c91fc60 win32u: Use allocator mechanism to allocate DC attributes.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53645
2022-09-20 20:53:17 +02:00
Hans Leidekker fa058bc3f0 adsldp/tests: Get rid of workarounds for Windows XP. 2022-09-20 20:53:10 +02:00
Hans Leidekker 4f9e80de0f adsldp/tests: Limit the number of search results. 2022-09-20 20:53:10 +02:00
Hans Leidekker 2281b06766 adsldp: Implement ADS_SEARCHPREF_SIZE_LIMIT. 2022-09-20 20:53:10 +02:00
Jacek Caban 9128587e4b winemac: Implement wow64 thunks. 2022-09-20 20:52:58 +02:00
Jacek Caban 1b69aae3f4 winemac: Use platform-independent types for user callback params. 2022-09-20 20:52:58 +02:00
Jacek Caban 4467589a4a win32u: Introduce NtUserSendDriverMessage.
And use it in display drivers.
2022-09-20 20:52:56 +02:00
Nikolay Sivov 5e0acc095d cryptowinrt: Implement GenerateRandomNumber().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-20 09:28:38 +02:00
Nikolay Sivov 09cb9cd1c6 cryptowinrt: Add a stub module.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-20 09:28:35 +02:00
Nikolay Sivov 307eae20a6 include: Add windows.security.cryptography.idl.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
2022-09-20 09:28:35 +02:00
Zebediah Figura d0f34c232a ntdll: Add a fast path for NtDeviceIoControlFile(INVALID_HANDLE_VALUE).
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53706
2022-09-20 09:28:32 +02:00
Connor McAdams 958bba92d2 uiautomationcore: Add tests for UiaNodeFromHandle.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-09-20 09:27:30 +02:00
Connor McAdams 8642e96c19 uiautomationcore: Create UI Automation client thread.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-09-20 09:27:30 +02:00
Connor McAdams 41dd89a8e4 uiautomationcore: Implement UiaNodeFromHandle.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-09-20 09:27:29 +02:00
Connor McAdams 858596bbd5 uiautomationcore: Shutdown provider thread when all returned nodes are released.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-09-20 09:27:29 +02:00
Connor McAdams d7c95765d0 uiautomationcore: Increment module reference count when starting provider thread.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-09-20 09:27:29 +02:00
Connor McAdams 02b87a4002 uiautomationcore: Implement UiaReturnRawElementProvider.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
2022-09-20 09:27:29 +02:00
Rémi Bernon 7ceac9e4c9 winegstreamer: Merge wm_syncreader.c into wm_reader.c. 2022-09-20 09:26:25 +02:00
Rémi Bernon 1dd11e63c0 winegstreamer: Aggregate a IWMSyncReader in the async reader.
Instead of an internal struct wm_reader.
2022-09-20 09:26:23 +02:00