instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Haivision__srt__2892 | Haivision/srt | 2,892 | defect | 04acbbad93a40a9c258b9c404adce1f96b1dacdd | 0bee6d81986431789b3ff1f4ed989db300a1faee | [test] Improved tests to avoid all-breaking asserts and inter-test messup | 1. Some small refax in api.cpp (shortcut variables, preparing for another change)
2. Added possibly handling -lognote option and added handling in FileUpload test.
3. Reworked test_reuseaddr.cpp to use a fixture and a propoer resource management.
4. Added similar fixes in other tests. | diff --git a/CMakeLists.txt b/CMakeLists.txt
index a429cf495..0bcc62a86 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -73,7 +73,12 @@ if (NOT MICROSOFT)
# that ENABLE_DEBUG is set as it should.
if (ENABLE_DEBUG EQUAL 2)
set (CMAKE_BUILD_TYPE "RelWithDebInfo")
- add_definitions(-DNDEBUG)
+ if (ENABL... | 1 | 1 | 0 | [{"id": "G0", "claim": "The lines added to the ENABLE_DEBUG block in CMakeLists.txt should be indented with tabs to match the file's style.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
Haivision__srt__2893 | Haivision/srt | 2,893 | defect | aa69c3db0daa221b0a9b4e86fee2efd80c6e6f2b | 212750da9287d99073884fee641535d7d9e3f987 | [core] Added busy counter for sockets and various fixes for data race problems | Here is introduced the SocketKeeper class, similar to GroupKeeper, together with the busy counter. The goal of this solution is to keep the socket alive until the busy counter reaches 0. This allows various facilities that are still running after the socket is requested to be closed to finish their job without having t... | diff --git a/srtcore/api.cpp b/srtcore/api.cpp
index d3e8af887..7d9274d3f 100644
--- a/srtcore/api.cpp
+++ b/srtcore/api.cpp
@@ -1905,11 +1905,29 @@ int srt::CUDTUnited::close(const SRTSOCKET u)
return 0;
}
#endif
- CUDTSocket* s = locateSocket(u);
- if (!s)
- throw CUDTException(MJ_NOTSUP, ... | 7 | 7 | 0 | [{"id": "G0", "claim": "The comments on the new SocketKeeper class were copied from GroupKeeper and should be adjusted, since this is not the GroupKeeper class.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The leftover comment at the end of Sock... | null |
Haivision__srt__2912 | Haivision/srt | 2,912 | defect | 03aa5e41125169733558854aa7a527f73c2adcc6 | 919501d98bb18a23e681156f38178a507068d9da | [core]Fixing the group option that should be taken from a socket | Changed: Added a possibility to return the option value that was set on the socket, if there is at least one member.
The problem: this should rather concern only selected types of options, not all options. So far probably it should only
apply to the following options:
* SRTO_RCVLATENCY, SRTO_PEERLATENCY, SRTO_LA... | diff --git a/srtcore/group.cpp b/srtcore/group.cpp
index 1539245a0..1d071e6ce 100644
--- a/srtcore/group.cpp
+++ b/srtcore/group.cpp
@@ -774,6 +774,17 @@ void CUDTGroup::getOpt(SRT_SOCKOPT optname, void* pw_optval, int& w_optlen)
default:; // pass on
}
+ {
+ ScopedLock cg(m_GroupLock);
+ gl... | 2 | 1 | 1 | [{"id": "G0", "claim": "For SRTO_KMSTATE the group should return the least secure KM state among its member sockets rather than a value taken from a single socket, with strength ordered from BADCRYPTOMODE (a rejection code that maybe should be ignored or set only if no other members are there) through BADSECRET, NOSECR... | null |
Haivision__srt__2964 | Haivision/srt | 2,964 | defect | 72303d7934f9c6b1cbe23c438672f0eba0f318cb | f4088e41ffb531bcd2c2d9ea5890dabd021be7f5 | [core] Setting up fmt with custom config structure for logging system | This provides the helper class `fmt_sender_proxy` with a helper function `fmt` so that nondefault formatting can be used in place. All intermediate formatting is done using `std::ostringstream` or `std::stringstream` class.
This proposes a new API for all iostream-based solutions, just like also iostream itself. For... | diff --git a/apps/logsupport.cpp b/apps/logsupport.cpp
index fbd70c47e..16a9332df 100644
--- a/apps/logsupport.cpp
+++ b/apps/logsupport.cpp
@@ -173,7 +173,7 @@ set<srt_logging::LogFA> SrtParseLogFA(string fa, set<string>* punknown)
void ParseLogFASpec(const vector<string>& speclist, string& w_on, string& w_off)
{
... | 5 | 2 | 0 | [{"id": "G0", "claim": "The static variable sflush (os_flush_manip) declared in srtcore/srt_sfmt.h is never read.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "ofilestream::open in srtcore/srt_sfmt.h creates a file with std::fopen(name.c_str(),... | null |
Haivision__srt__3019 | Haivision/srt | 3,019 | defect | 9c7206f0190c0c800a5ee1e71ee61ec0d4c7e216 | 6d7e44ef99f730c86e2ee672c55e43752f483848 | [core][apps] Some refactoring per clang-reported warnings | Changes are added for various reasons.
Inline comments have been added to explain the reason of particular changes. | diff --git a/.github/workflows/cxx11-win.yaml b/.github/workflows/cxx11-win.yaml
index 1a9e10a95..f1554053d 100644
--- a/.github/workflows/cxx11-win.yaml
+++ b/.github/workflows/cxx11-win.yaml
@@ -17,8 +17,8 @@ jobs:
- name: configure
run: |
md _build && cd _build
- cmake ../ -DENABLE_STDCXX... | 1 | 1 | 0 | [{"id": "G0", "claim": "The newly added local length variables your_pfx_len and logger_pfx_len should be declared const.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Haivision__srt__3086 | Haivision/srt | 3,086 | defect | 3931af64fbe87543d8fc65a9ff067a7e07c9eed7 | 1783398997f94e3c9cf683713cd96e1ab03826b8 | [tests] Extending socket options test to group options. | Extended socket options unit tests to group sockets. Only checks default values as of this PR. Max, min, invalid values could be added later.
Work within #3074. | diff --git a/.gitignore b/.gitignore
index b4e22ff8d..03cca0f87 100644
--- a/.gitignore
+++ b/.gitignore
@@ -33,6 +33,7 @@
# Ignore any folder starting from underscore
_*/
+venv/
# Ignode Visual Studio Code temp folder
.vs/
diff --git a/srtcore/group.cpp b/srtcore/group.cpp
index 3a9fc3f1d..c0df17ac8 100644
---... | 5 | 4 | 1 | [{"id": "G0", "claim": "The venv/ entry added to .gitignore slipped into this pull request unintentionally and is to be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In setup(), both sockets should be created before the setsockopt call... | null |
Haivision__srt__3089 | Haivision/srt | 3,089 | defect | 3931af64fbe87543d8fc65a9ff067a7e07c9eed7 | 4bf41fd1d54f06d53201e6cdd0fa9ebc54b3d9f7 | [core] Fixed socket options that are not allowed to be set on a group. | - [x] SRTO_BINDTODEVICE - fix the doc, it says you cat set it on a group
- [x] SRTO_CONGESTION
- [x] SRTO_EVENT - readonly
- [x] SRTO_GROUPCONNECT
- [x] SRTO_GROUPTYPE - readonly
- [x] SRTO_ISN - readonly
- [x] SRTO_KMSTATE - readonly
- [x] SRTO_RCVDATA - readonly
- [x] SRTO_RCVKMSTATE - readonly
- [... | diff --git a/docs/API/API-socket-options.md b/docs/API/API-socket-options.md
index 3291f6e27..0206765d6 100644
--- a/docs/API/API-socket-options.md
+++ b/docs/API/API-socket-options.md
@@ -201,10 +201,10 @@ The following table lists SRT API socket options in alphabetical order. Option d
| Option Name ... | 2 | 2 | 0 | [{"id": "G0", "claim": "The SRTO_SNDKMSTATE and SRTO_RCVKMSTATE cases added to the group's not-allowed/read-only switch block should also be marked as read-only like the other cases there.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Setting S... | null |
Haivision__srt__3109 | Haivision/srt | 3,109 | defect | 5cd2414fee01f6dbca167e0c63bbf28ad9b4eccd | 7956d0802efcf1a7d42f4a0121afbefc97fa3aa7 | Automatic call of startup() and cleanup() #3098 | This pull request fixes issue #3098 by ensuring that startup() and cleanup() are called automatically. As a result, there is no longer a need to call them implicitly when creating the first socket.
Additionally, the garbage collector thread now starts only when the first socket is created. Some refactoring has been ... | diff --git a/.gitignore b/.gitignore
index b4e22ff8d..5fc34a6a4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -47,3 +47,4 @@ compile_commands.json
# ignore files generated by clion and cmake
.idea/
cmake-build-debug/
+tags
diff --git a/apps/srt-live-transmit.cpp b/apps/srt-live-transmit.cpp
index 0a918e6b0..dd0aa0193 ... | 7 | 6 | 1 | [{"id": "G0", "claim": "The SrtFilterConfig parameter (88 bytes) of CheckFilterCompat should be passed as a const pointer/reference instead of by value.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "As SRT is a library, startup must stay manual or ... | null |
Haivision__srt__3190 | Haivision/srt | 3,190 | defect | 5d80411f0c2df2ebaa2177875309974b0233cc6c | d6b3446ac6332d1004d3bf70a3bad28656948ad5 | [MAINT] Added optional test discovery. Added improvements for attributes. Enabled std shared mutex if compiling with C++17 | Changes:
1. `CMakeLists.txt`: the test discovery can be optionally disabled. This is necessary sometimes because with test discovery the tests are being run during compiling by default silently and if they fail, the `make` tool deletes `test-srt` app as it normally does when the target fails. Sometimes discovery may... | diff --git a/CMakeLists.txt b/CMakeLists.txt
index a5547454f..0b0f101b0 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -164,6 +164,7 @@ option(ENABLE_PKTINFO "Enable using IP_PKTINFO to allow the listener extracting
option(ENABLE_RELATIVE_LIBPATH "Should application contain relative library paths, like ../lib" OF... | 3 | 3 | 0 | [{"id": "G0", "claim": "The description of the ENABLE_UNITTESTS_DISCOVERY option should read \"Discover unit tests when enabled\" rather than the inverted \"Do not discover unit tests when enabled\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "... | null |
Haivision__srt__3220 | Haivision/srt | 3,220 | defect | bab403744b4d02005b03dac12a79988bc4590038 | fca4401b00d9f89c4294f0dc12181e4c313b3f03 | [core] Reimplemented MAXREXMITBW controller basing on Token Bucket algorithm | This reimplements the retransmission bandwidth controller facility. The so far used controller is blocked.
The new controller is introduced through the `CShaper` class working on the Token Bucket algorithm.
A temporary solution is used in the form of calculating the average size of the sent packet because the imp... | diff --git a/srtcore/buffer_tools.h b/srtcore/buffer_tools.h
index 88479827d..b90f878d8 100644
--- a/srtcore/buffer_tools.h
+++ b/srtcore/buffer_tools.h
@@ -198,6 +198,132 @@ class CSndRateEstimator
int m_iRateBps; //< Rate in Bytes/sec.
};
+// Utility class for bandwidth limitation
+class CShap... | 3 | 1 | 0 | [{"id": "G0", "claim": "The double result of milliseconds_from(BURSTPERIOD_DEFAULT()) is implicitly converted to signed long in the CShaper constructor's m_BurstPeriod initialisation, a lossy cast.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ... | null |
Haivision__srt__3227 | Haivision/srt | 3,227 | defect | bab403744b4d02005b03dac12a79988bc4590038 | 871a35c7c87f9a42895430f9553c82ff61f03fa3 | [core] Restored old cookie contest. Added development support for enforcing cookie values. | Changes:
1. The cookie contest method was restored the version from 1.4.5, which is still buggy, but least risky.
2. Added a mechanism to enforce a cookie value, for testing and development.
Version 1.3.0 has created a range of values where the overflow situation was ignored, hence the HS side was rendered the o... | diff --git a/srtcore/core.cpp b/srtcore/core.cpp
index 0acef17bb..adfb5235f 100644
--- a/srtcore/core.cpp
+++ b/srtcore/core.cpp
@@ -4102,6 +4102,15 @@ void srt::CUDT::sendRendezvousRejection(const sockaddr_any& serv_addr, CPacket&
m_pSndQueue->sendto(serv_addr, r_rsppkt, m_SourceAddr);
}
+// NOTE: there is pro... | 2 | 2 | 1 | [{"id": "G0", "claim": "In the new CUDT::handshakeSide(SRTSOCKET), the result of uglobal().locateSocket(u) is not checked for null before dereferencing, unlike the 84% of other call sites that do check.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
Haivision__srt__3228 | Haivision/srt | 3,228 | defect | 06b048a0e1e3653e3f2947c2eef38e1814f852f8 | 58259cf645d4b855512ec37fd17579dba625b32a | [core] Rendezvous with pure comparison resolution and adaptive for wrong cookie contest | Fixes:
1. Cookie contest based on a simple comparison, which handles the overflow correctly and leaves no corner cases.
2. After detection that the other party shares the same side (which should never happen in THIS version on), it adapts to the other party by changing the side to opposite.
3. Added mechanism to e... | diff --git a/srtcore/common.cpp b/srtcore/common.cpp
index 9851589f2..1f2398fdf 100644
--- a/srtcore/common.cpp
+++ b/srtcore/common.cpp
@@ -75,6 +75,7 @@ modified by
#include "logging.h"
#include "packet.h"
#include "logger_fas.h"
+#include "handshake.h"
using namespace std;
using namespace srt::sync;
@@ -638,6... | 1 | 1 | 1 | [{"id": "G0", "claim": "The result of the call to locateSocket in the new CUDT::handshakeSide(SRTSOCKET) helper is not checked for null before being dereferenced, unlike 85% of calls to locateSocket.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
Haivision__srt__471 | Haivision/srt | 471 | defect | 6f6b76b381ba8854fcd699908f74fae4cfce6783 | 6ff2b8aa8ffff7343e356719df900fd6c21d4251 | Fix a problem when a connection is rejected when the last handshake was missed | In the caller-listener configuration, the socket that is currently in the handshake (connecting) state expects only handshake messages to be received.
In a situation that the conclusion handshake was sent from a caller to a listener, the listener interprets it and turns into a connected state, with sending the last ... | diff --git a/CMakeLists.txt b/CMakeLists.txt
old mode 100644
new mode 100755
diff --git a/apps/logsupport.cpp b/apps/logsupport.cpp
old mode 100644
new mode 100755
diff --git a/apps/logsupport.hpp b/apps/logsupport.hpp
old mode 100644
new mode 100755
diff --git a/apps/socketoptions.cpp b/apps/socketoptions.cpp
old mode... | 2 | 2 | 0 | [{"id": "G0", "claim": "The newly added TEST_DISABLE_FINAL_HANDSHAKE compile-time guard around sending the final handshake response in acceptAndRespond has no explained purpose and should be justified or removed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla... | null |
Haivision__srt__494 | Haivision/srt | 494 | defect | fc0adbd6435ef6efd96e827ffc7bc17432d9fb34 | dc8341b4b86daded844814f96ef5e09a0a44edaf | Added some tests for the CEPoll | Some simple tests for EPoll. The PR also contains a minor change to the CI tests build. | diff --git a/.travis.yml b/.travis.yml
index ee447b1d6e..498ad3241c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -47,7 +47,8 @@ matrix:
- export CXX="x86_64-w64-mingw32-g++"
env: BUILD_TYPE=Release
script:
- - if [ "$TRAVIS_OS_NAME" == "linux" ]; then cmake . -DCMAKE_BUILD_TYPE=$BUILD_TYPE ... | 5 | 5 | 0 | [{"id": "G0", "claim": "The new test file should use spaces for indentation instead of tabs.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new test code should stay at C++03 and not use the C++11 nullptr.", "category": "design", "verdict": ... | null |
Haivision__srt__502 | Haivision/srt | 502 | defect | 78e063d97b1502bb9aae31e59b248805347a37dc | cd1b33b9130d76bd1b31ed0d16b84186fc277b15 | Added unit tests for strict encryption | **TESTING SCENARIO**
Both peers exchange HandShake v5.
Listener is sender in a non-blocking mode
Caller is receiver in a non-blocking mode
**BONUS TESTS**
1. Test password length (length should belong to [10, 80]).
2. Check set/get SRTO_STRICTENC. | diff --git a/CMakeLists.txt b/CMakeLists.txt
index eb2582c3a5..46c6b6755a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -805,7 +805,7 @@ if (ENABLE_UNITTESTS)
${PROJECT_BINARY_DIR}/googletest
)
- srt_add_program(test_srt test/test_buffer.cpp test/test_connection_timeout.cpp)
+ srt_add_program(test_srt test... | 6 | 6 | 1 | [{"id": "G0", "claim": "static_assert() is C++11, so the new test file should stick to C++03 and not use it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Remove the excess blank lines at the end of test_strict_encription.cpp.", "category": "mainta... | null |
Haivision__srt__670 | Haivision/srt | 670 | defect | c05ca7d7b3498c3afff5ba2b5e2b1dbf27278394 | f67ef07a2f6554548929ae6cf413c70239c96586 | Introduced ENABLE_ENCRYPTION flag, ON by default. | Fixes #666
This introduces the compile option for encryption (cmake: `SRT_ENABLE_ENCRYPTION=OFF`, configure: `--disable-encryption`). When used:
- haicrypt subproject is not added to SRT
- SSL library dependencies are off
- setting a password or pbkeylen is not enabled (setting an empty password is tolerated and ... | diff --git a/CMakeLists.txt b/CMakeLists.txt
index ae1f0da46..d3e1da46e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -90,6 +90,7 @@ option(ENABLE_RELATIVE_LIBPATH "Should application contain relative library path
option(ENABLE_SUFLIP "Should suflip tool be built" OFF)
option(ENABLE_GETNAMEINFO "In-logs sockadd... | 5 | 2 | 1 | [{"id": "G0", "claim": "The new enable-encryption option line in configure-data.tcl uses a tab where the file's surrounding option lines use spaces.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In the no-encryption build the SRTO_PASSPHRASE ha... | null |
Haivision__srt__708 | Haivision/srt | 708 | defect | 196df3d32120669f9ebeaed1263fe3e4ac77aa33 | 025add14752a506edd9f731bf8e4e6bf94e54df4 | Tests/rcv buffer | - Added several unit tests for `CRcvBuffer`.
- Added assertions to `CRcvBuffer`.
- Added several error checks to `CRcvBuffer`. | diff --git a/srtcore/buffer.cpp b/srtcore/buffer.cpp
index a3dc492e1..1eea70811 100644
--- a/srtcore/buffer.cpp
+++ b/srtcore/buffer.cpp
@@ -676,9 +676,9 @@ void CSndBuffer::increase()
//const int CRcvBuffer::TSBPD_DRIFT_PRT_SAMPLES = 200; // ACK-ACK packets
#endif
-CRcvBuffer::CRcvBuffer(CUnitQueue* queue, int b... | 3 | 3 | 0 | [{"id": "G0", "claim": "A comment should be added explaining that the ackData expectations result from the function being called with a size precalculated from the distance between two sequence numbers, synchronized with the last ACK-ed position and checked against the range of ever added packets.", "category": "docume... | null |
Haivision__srt__711 | Haivision/srt | 711 | defect | 3d159f017c68505bcf652484fde36d008e5fc02b | f16535bdd7d5a0220ef84bbaa5e30ae4fd492b69 | [core] Add USE_BUSY_WAITING build option | This PR extracts several things from #678 to be able to merge them without changing the behavior of SRT.
1. Introduce USE_BUSY_WAITING and ENABLE_IST_DEVIATION build options. These options allow to build SRT with highly accurate busy waiting loop to be used in the sending queue timing. Disabled y default to maintain... | diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0a65f61e52..1a63ea4850 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -109,6 +109,8 @@ option(ENABLE_CXX_DEPS "Extra library dependencies in srt.pc for the CXX librari
option(USE_STATIC_LIBSTDCXX "Should use static rather than shared libstdc++" OFF)
option(ENABL... | 3 | 1 | 0 | [{"id": "G0", "claim": "The guard should simply be `#if USE_BUSY_WAITING` (with the macro ensured in the build file) instead of `#if defined(USE_BUSY_WAITING) && USE_BUSY_WAITING`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "MSVC does not sup... | null |
Haivision__srt__720 | Haivision/srt | 720 | defect | 2e6037e5313e63caae66ba831ba5c7ef749f1eef | 748ba0e31afad852474bc2760e8417957263ca46 | Implemented and exposed rejection reason | The rejection reason has been implemented. As a demonstration, also reported by `srt-test-live`.
Internal changes: the codes for `m_iReqType` in the handshake contain error values that contain reject reason, which occupy all values above 1000 (as previously erroneous values). Backward compatibility assignments to co... | diff --git a/srtcore/api.cpp b/srtcore/api.cpp
index 87706beb6..ee3348bd6 100644
--- a/srtcore/api.cpp
+++ b/srtcore/api.cpp
@@ -329,10 +329,13 @@ SRTSOCKET CUDTUnited::newSocket(int af, int)
return ns->m_SocketID;
}
-int CUDTUnited::newConnection(const SRTSOCKET listen, const sockaddr* peer, CHandShake* hs, con... | 2 | 2 | 1 | [{"id": "G0", "claim": "The 'peer reported' (SRT_REJ_PEERREP) flag complicates the API usage for the user and is unnecessary, so it should be removed completely.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "SRT_REJ_STRICTENC should be renamed (e.g. SRT... | null |
Haivision__srt__833 | Haivision/srt | 833 | defect | 196df3d32120669f9ebeaed1263fe3e4ac77aa33 | 6c4c4deeb4f6be1be8664e07ac4b063f09917133 | [core] Fix for srt_connect() in the blocking mode | Under certain conditions `m_bConnecting` variable on a socket might not be reset to false after a connection attempt has failed.
In that case any further call to srt_connect will return `SRT_ECONNSOCK`:
"Operation not supported: Cannot do this operation on a CONNECTED socket"
In general case the receiver's worker ... | diff --git a/srtcore/core.cpp b/srtcore/core.cpp
index 3bae9b233..327915453 100644
--- a/srtcore/core.cpp
+++ b/srtcore/core.cpp
@@ -3155,6 +3155,7 @@ void CUDT::startConnect(const sockaddr* serv_addr, int32_t forced_isn)
if (e.getErrorCode() != 0)
{
+ m_bConnecting = false;
// The process i... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new test's hardcoded port 5555 may be occupied by an SRT listener or another service and so thwart the test; the port should be chosen by scanning upward from 5000 for a free UDP port and preserved (bound) by the test before use.", "category": "testing", "verdict": "supported", "priority": "... | null |
Haivision__srt__852 | Haivision/srt | 852 | defect | ab2b12d6ec9330bdfe872b87b73886e4462a4d26 | c0db916f4fa2f051e47e8c662eb99031538cf8d7 | {FEC} Random refactoring and small bugfixes during FEC works. | List of fixes:
=======
* Added official (lacking) option `--enable-unittests` to `configure-data.tcl`
* Formatting fixes and new log entries
* Added testing entry in `channel.cpp` to allow configure a fake packet loss
* Extra comments
* Better use of conditional `IF_HEAVY_LOGGING` for evaluations used for heavy... | diff --git a/configure-data.tcl b/configure-data.tcl
index 69ba51e96..956a79f3f 100644
--- a/configure-data.tcl
+++ b/configure-data.tcl
@@ -52,6 +52,7 @@ set cmake_options {
enable-static "Should libsrt be built as a static library (default: ON)"
enable-suflip "Should suflip tool be built (default: OFF)"
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The 'testin' member of the union in BufferStamp is unused and produces a compiler warning.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Haivision__srt__970 | Haivision/srt | 970 | defect | 5683c0a2c245d0672666db58f1d28f794680b072 | 07a8d61141c32c18cdbc3672dc8b9db4dc3c9143 | Added binding a socket used for multicast to the adapter address, if adapter was specified | Fixes #956.
This changes also the existing behavior, as now if you specify the `adapter` parameter for `udp` URI, the socket used for sending will be also bound to this address. Please review if this change is acceptable. | diff --git a/apps/transmitmedia.cpp b/apps/transmitmedia.cpp
index 64cae287c..e1508dc76 100644
--- a/apps/transmitmedia.cpp
+++ b/apps/transmitmedia.cpp
@@ -1050,8 +1050,9 @@ class UdpCommon
if ( res == status_error )
{
- throw runtime_error("adding to multicast membership fai... | 5 | 4 | 0 | [{"id": "G0", "claim": "The tool-description sentence should read \"...a universal data transport tool, the intention of which is to transport data between SRT and other mediums.\" instead of \"...which's intention is to transport data between SRT and other medium.\"", "category": "documentation", "verdict": "uncertain... | null |
Hakky54__log-captor__10 | Hakky54/log-captor | 10 | defect | e0ebf3abff79c25964f0c511efc54ab041fbafc9 | 8d6559ba4c000ea610d2c9ebeb7290d00d4d3ec0 | Added capturing of MDC context, fixed small typos | Hello!
I was trying to use your cool library in my tests and didn't find one important feature - capturing of MDC context.
So I decided to add it myself :)
Give me some feedback please.
Thank you | diff --git a/README.MD b/README.MD
index d9b61ba..0d3c655 100644
--- a/README.MD
+++ b/README.MD
@@ -284,7 +284,7 @@ public class FooServiceShould {
```
## Using Log Captor alongside with other logging libraries
-When building your maven or gradle project it can complain that you are using multiple SLF4J implementa... | 4 | 4 | 0 | [{"id": "G0", "claim": "Revert the wildcard import (import java.util.*) in LogCaptor.java back to explicitly listing the used java.util classes, a stated personal preference.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rename mdcProperties to... | null |
Hakky54__log-captor__7 | Hakky54/log-captor | 7 | defect | 3e8b0fbf5361f4da2b0cefe3b7c1ad190cbc9547 | 1eae34c05c6c219b5f4e9cd581f761f8441e1861 | Add possibility to apply a filter to LogCaptor's logs | Hi! I have found your library very useful.
I'm working on a project, where logs have business meaning (some of them are even persisted in database, some of them act like alerts for monitoring team and etc ...).
We created our own appenders and applied some custom filters to filter out business logs from regular app... | diff --git a/src/main/java/nl/altindag/log/LogCaptor.java b/src/main/java/nl/altindag/log/LogCaptor.java
index a18e86b..8e15711 100644
--- a/src/main/java/nl/altindag/log/LogCaptor.java
+++ b/src/main/java/nl/altindag/log/LogCaptor.java
@@ -20,6 +20,7 @@
import ch.qos.logback.classic.Logger;
import ch.qos.logback.cla... | 1 | 1 | 0 | [{"id": "G0", "claim": "Move the addFilter method below toLogEvent so that getLogEvents and toLogEvent remain grouped together.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
Hakky54__mutual-tls-ssl__80 | Hakky54/mutual-tls-ssl | 80 | defect | 383b05ee866c394f83b6371622b712ef8fad3c8d | 8c5d54af1267581b071d766a9cd01aa2de31ef4f | CXF WebClient | Hello Hakan
Need to discuss approach.
I tried to use original CXF only API to configure client.
1. I had not figured out how you test SSL in Unit tests.
Test ApacheCXFWebClientServiceShould is passing when SSL is not configured ...
I had not done much just run script/configure-one-way-authentica... | diff --git a/client/pom.xml b/client/pom.xml
index 1cdecce8..c092e825 100644
--- a/client/pom.xml
+++ b/client/pom.xml
@@ -45,6 +45,26 @@
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-client</artifactId>
</dependency>
+
+ <!-- CXF still using jakarta.ws.rs-api 2.x, we ha... | 7 | 5 | 0 | [{"id": "G0", "claim": "The new Maven property should be named version.apache.cxf instead of version.cxf, to be consistent with the other apache http client properties such as version.apache.httpclient.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai... | null |
Halleck45__ast-metrics__21 | Halleck45/ast-metrics | 21 | defect | b92f21e8e264b797f9026a4a1037073d64b2c170 | ce32b873bd6162cd895b6a0b688c5f42805c563b | added CLI tests |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- **Tests**
- Enhanced test coverage for the `AnalyzeCommand` functionality, validating the generation of HTML and markdown reports.
- Added tests for parsing PHP interfaces and operators to improve PHP analy... | diff --git a/src/Command/AnalyzeCommand_test.go b/src/Command/AnalyzeCommand_test.go
new file mode 100644
index 00000000..20561cbb
--- /dev/null
+++ b/src/Command/AnalyzeCommand_test.go
@@ -0,0 +1,73 @@
+package Command
+
+import (
+ "bufio"
+ "os"
+ "testing"
+
+ "github.com/halleck45/ast-metrics/src/Analyzer"
+ "gith... | 10 | 1 | 0 | [{"id": "G0", "claim": "Handle errors from Storage.Purge() and Storage.Ensure() in the test setup so the test does not proceed when storage setup fails.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename tmpReportMarkdownDir to tmpReportMarkdownFile ... | null |
Halleck45__ast-metrics__50 | Halleck45/ast-metrics | 50 | defect | 8872c2dad660d72d572495bda663e2fe2ea8f146 | 84cc952cd8a210b8c689e736080793f7bbf338dd | Add JSON report | This pull request adds the JSON report feature.
#45
| diff --git a/main.go b/main.go
index 128c147a..b069e14e 100644
--- a/main.go
+++ b/main.go
@@ -80,6 +80,11 @@ func main() {
Usage: "Generate an Markdown report file",
Category: "Report",
},
+ // JSON report
+ &cli.StringFlag{
+ Name: "report-json",
+ Usage: "Generate a report i... | 6 | 3 | 1 | [{"id": "G0", "claim": "The new JSON report flag should be documented in the usage guide.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "CleanVal should return an error instead of using panic when the value is not a pointer, so production code fai... | null |
Halleck45__ast-metrics__68 | Halleck45/ast-metrics | 68 | defect | 27bb64335d702945230ee51e49b6e32e561951d6 | 8f179f61574117c4f79c457c4b40c72517ceaa64 | Improving DX, adding a --ci option and listing generated reports in output | 
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
## Release Notes
- **New Features**
- Introduced a new command-line flag `--ci` for continuous int... | diff --git a/main.go b/main.go
index 70516c93..a167f00d 100644
--- a/main.go
+++ b/main.go
@@ -2,8 +2,10 @@ package main
import (
"bufio"
+ "fmt"
"os"
+ "github.com/charmbracelet/lipgloss"
"github.com/halleck45/ast-metrics/src/Cli"
"github.com/halleck45/ast-metrics/src/Command"
"github.com/halleck45/ast-... | 27 | 2 | 1 | [{"id": "G0", "claim": "The markdown report generator tests discard the GeneratedReport returned by Generate and should validate the returned report metadata, including for template-based generation.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "modelS... | null |
Hamlib__Hamlib__1390 | Hamlib/Hamlib | 1,390 | defect | 3e0420f13829436786c02eeaa13ce0fc5d0ce8cb | 76a836af5b4550bbec01f0ea6261497afb3934fb | Major code cleanup. Replace dyn. memory by static memory usage. | This PR comprises:
* A major code cleanup - deleted some unused functions
* Replacing dynamic memory allocation by static memory usage.
Both points aim at fixing a reproducible crash of e.g. WSJT-X on macOS on Apple M1/M2 processors - WSJT-X runs using Apple's Rosetta and this seems to have caused memory alignmen... | diff --git a/rigs/adat/adat.c b/rigs/adat/adat.c
index e6126fdf9..90e9bbdb0 100644
--- a/rigs/adat/adat.c
+++ b/rigs/adat/adat.c
@@ -50,19 +50,18 @@
// GLOBAL DEFINITIONS
// ---------------------------------------------------------------------------
-#if !defined(NDEDBUG)
+#if !defined(NDEBUG)
# define ADAT_DE... | 1 | 1 | 1 | [{"id": "G0", "claim": "acBuf, which may come from a read(), is passed as the format string of snprintf, giving an uncontrolled format string.", "category": "security", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
Hamlib__Hamlib__1413 | Hamlib/Hamlib | 1,413 | defect | fb03d095dff23b7efd1794a9ce2ebf9425889579 | 5fb2e68e07c8b972d82b68dc4b0a5b2d79045623 | Refactor multicast publisher/server code | @mdblack98 NOTE: This is a draft PR until I get to test the code properly on Windows too. It seems also the UDP server has some bug on Linux, but didn't spot it yet :)
This PR addresses the following:
* Create a separate "receiver" server routine for multicast command handling (move it out of the publisher, they'... | diff --git a/include/hamlib/rig.h b/include/hamlib/rig.h
index 3816bbab0..6a0647518 100644
--- a/include/hamlib/rig.h
+++ b/include/hamlib/rig.h
@@ -2758,7 +2758,13 @@ struct rig_state {
volatile int morse_data_handler_thread_run;
void *morse_data_handler_priv_data;
FIFO_RIG *fifo_morse;
- int port_mu... | 4 | 4 | 2 | [{"id": "G0", "claim": "The multicast receiver passes a char-sized optval to setsockopt for SO_REUSEADDR, which per socket(7) must be an int.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "On Windows, quitting rigctl never exits because the multicas... | null |
Hamlib__Hamlib__1707 | Hamlib/Hamlib | 1,707 | defect | 9fe15f396312dca878435ed4ed1121a3928bd025 | cd82f08ec56b153029067be4a616bf0fd136b6a4 | Fix/manpage | This pull requested has grown big because I split and sorted the lists of parameters and copied text between `rigctl.1` and `rigctld.1` but there are also changes that add information to the man pages and to the help text.
Most commits change only man pages.
Three commits change a comment in `rig.h` and some string... | diff --git a/doc/man1/ampctld.1 b/doc/man1/ampctld.1
index 31d97844f..b9bb10c9d 100644
--- a/doc/man1/ampctld.1
+++ b/doc/man1/ampctld.1
@@ -492,12 +492,6 @@ the value terminated by the response separator. e.g. \(lqFrequency:
.
.PP
4. All commands received will be acknowledged by
-.B ampctld
- with records from rule... | 1 | 1 | 1 | [{"id": "G0", "claim": "The -b/--bind-all option the pull request adds to SHORT_OPTIONS should also be presented in the Usage message at the bottom of tests/rigctld.c.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
Hamlib__Hamlib__1742 | Hamlib/Hamlib | 1,742 | defect | ad824fa85e42fbf185addef24526427803056f1e | 9f2f50ea5de46ae733a60590fc377ce59a32ad7a | Fix typos | This PR replaces the constant version number "4.0~git" in the readme's for Windows with the actual version number like at the beginning of the same files and updates the URL for the online documentation.
I also fixes one error was in the description of the capability of a rotator, the others were in Doxygen comments... | diff --git a/README.md b/README.md
index 3b10936979..9b4410138f 100644
--- a/README.md
+++ b/README.md
@@ -27,15 +27,15 @@ to reach the Wiki.
Hamlib Design
-------------
-The library provides functions for both radio and rotator control,
-and data retrieval from the radio or rotator. A number of functions useful
+... | 1 | 1 | 1 | [{"id": "G0", "claim": "The PR should not replace the Source Forge manual links (e.g. http://hamlib.sourceforge.net/manuals/4.1/index.html in scripts/build-w32.sh and scripts/build-w64.sh) with the GitHub wiki Documentation link, since the Source Forge site hosts the Doxygen-generated manual, and asks to revert those l... | null |
Hamlib__Hamlib__1760 | Hamlib/Hamlib | 1,760 | defect | 7b60cb586dc6b1f76bd85bceba42dac373159914 | 5087894d7166d121a02bc9347bdd216258fe7f3b | Reduce output from cppcheck.sh | Get rid of some more style nagging - add const/static modifiers, drop some unneeded code.
Make cppcheck.sh aware of out-of-tree building - try to find generated include files.
For master/4.7 only
| diff --git a/rigs/kenwood/elecraft.c b/rigs/kenwood/elecraft.c
index 16ef7c418..4849217b9 100644
--- a/rigs/kenwood/elecraft.c
+++ b/rigs/kenwood/elecraft.c
@@ -22,6 +22,7 @@
* the complete text of the GNU Lesser Public License version 2.1.
*
*/
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
#include <stri... | 1 | 1 | 0 | [{"id": "G0", "claim": "The duplicate K3/K4 function declaration block and duplicated capabilities comment should not have the section preceding the k3_caps definition (with its comment) removed instead of the earlier duplicate section.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "in... | null |
Hamlib__Hamlib__2003 | Hamlib/Hamlib | 2,003 | defect | 0339422200449db372c63ac4613913dc4a941a20 | 1b2461aba99f0dde0531e1732c00e60aeee40657 | 5.0 ABI changes - Crossing the Rubicon | This PR makes major changes in the internal storage structures of HAMLIB. All port and state structures are now
independently allocated on the heap, removing most of the constraints on maintaining fixed offsets into other structures for .dll/.so compatibility.
It also removes the definition of the port and state s... | diff --git a/NEWS b/NEWS
index 1fa24e0b2..e204ec4fd 100644
--- a/NEWS
+++ b/NEWS
@@ -13,7 +13,7 @@ Version 5.x -- future
* rot_get_conf deprecated and replaced by rot_get_conf2
* Change FT1000MP Mark V model names to align with FT1000MP
* Internal data structures moved out of rig_struct to in... | 11 | 4 | 2 | [{"id": "G0", "claim": "The new rig_state comment should go further and simply forbid applications from accessing the state, with accessor functions added for the necessary fields.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The historical remarks in th... | null |
HanSolo__medusa__94 | HanSolo/medusa | 94 | defect | 2891c8a047f4954472df83ccc6243e9dda78aef8 | 928aa6e88c755d54d08f8ba4d0095e303a654ea3 | Fixes for lcd visible change | - Some meter skins changed the font only after a resize.
- Some meter skins didn’t changed the font, leaving the digital one.
- AMP skin had a different behaviour, using led visible instead of
value visible. | diff --git a/src/main/java/eu/hansolo/medusa/Test.java b/src/main/java/eu/hansolo/medusa/Test.java
index 1f1d94c2..629007ba 100644
--- a/src/main/java/eu/hansolo/medusa/Test.java
+++ b/src/main/java/eu/hansolo/medusa/Test.java
@@ -80,10 +80,7 @@ public class Test extends Application {
.bu... | 1 | 1 | 0 | [{"id": "G0", "claim": "The redundant lcd.setVisible(...) calls before Helper.enableNode(lcd, ...) are not needed because Helper.enableNode() already sets the node's visibility.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
HandBrake__HandBrake__1957 | HandBrake/HandBrake | 1,957 | defect | bf6a9cfeea4b940989b99d15aa9099a35a047dbe | 4648a1b4af112d823490b6a643315b6d5efd5420 | libhb: Initial implementation of Chroma Smooth filter. | Useful for resolving various color-related issues, especially with lower resolution content from analog sources, e.g. not great DVD and VHS sources.
The blurring/smoothing algorithm is the same as used by the unsharp filter.
Some under-the-hood aspects could be improved. Currently, the Y/Luma plane is copied in m... | diff --git a/libhb/chroma_smooth.c b/libhb/chroma_smooth.c
new file mode 100644
index 0000000000000..ec1c2ecd99237
--- /dev/null
+++ b/libhb/chroma_smooth.c
@@ -0,0 +1,370 @@
+/* chroma_smooth.c
+
+ Copyright (c) 2002 Rémi Guyomarch <rguyom at pobox.com>
+ Copyright (c) 2003-2019 HandBrake Team
+ This file is par... | 2 | 1 | 0 | [{"id": "G0", "claim": "The filter should pass the hb_buffer_t (or a typedef'd plane struct) into luma_copy and chroma_smooth instead of digging out plane data/width/height/stride at each call site, which would reduce parameter count and let differing source/dest geometry be handled.", "category": "design", "verdict": ... | null |
HandBrake__HandBrake__3422 | HandBrake/HandBrake | 3,422 | defect | 89a1bcacab67cbcebd47d7cfe747b5583e604813 | 63c41f3d6dc3276ed2bebc306b8b660e9b50650d | qsv: redesigned adapter capabilities collection and reporing | * Now it properly supports multiple QSV adapters with different HW generations
* For Windows adapter enumeration is based on DirectX API information, not CPU flags.
* Reporting
```
[18:46:21] Compile-time hardening features are enabled
Cannot load nvEncodeAPI64.dll
Cannot load nvEncodeAPI64.dll
Cannot load nvEnc... | diff --git a/libhb/common.c b/libhb/common.c
index d96d927626f17..01cb081c4ac01 100644
--- a/libhb/common.c
+++ b/libhb/common.c
@@ -293,7 +293,7 @@ static int hb_video_encoder_is_enabled(int encoder, int disable_hardware)
#if HB_PROJECT_FEATURE_QSV
if (encoder & HB_VCODEC_QSV_MASK)
{
- re... | 4 | 4 | 1 | [{"id": "G0", "claim": "The #include \"handbrake/qsv_common.h\" added to libhb/preset.c is unused and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The adapter index should not be re-read/reset when converting a job to a dict... | null |
HandBrake__HandBrake__3925 | HandBrake/HandBrake | 3,925 | defect | c19d06228ac56ddaa0f11fd5cfa0b77580dcbb62 | 12de14959f00a66ddfddeb282f2f3e54e0805763 | Improved Crop Algorithm | - Try to detect mixed aspect ratio cropping and automatically switch to loose cropping.
- Added Level 2 logging for the crop data. Might be useful.
Example Log Output:
```
[20:53:57] crop: [0] 1/2/0/0
[20:53:57] crop: [1] 1/2/0/0
[20:53:57] crop: [2] 1/2/0/0
[20:53:57] crop: [3] 1/2/0/0
[20:53:57] crop: ... | diff --git a/libhb/handbrake/common.h b/libhb/handbrake/common.h
index c624c38e73131..3e5d864c43ad5 100644
--- a/libhb/handbrake/common.h
+++ b/libhb/handbrake/common.h
@@ -1100,7 +1100,6 @@ struct hb_metadata_s
hb_list_t * list_coverart;
};
-// Update win/CS/HandBrake.Interop/HandBrakeInterop/HbLib/hb_title_s.... | 5 | 5 | 2 | [{"id": "G0", "claim": "In DecodePreviews the newly added threshold locals are ints but are compared against NULL, so the intended defaults (4 frames, 20 pixels) never apply; the comparison should test against 0.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1",... | null |
HandBrake__HandBrake__4156 | HandBrake/HandBrake | 4,156 | defect | 6b7661427850ad78d74d393a36711255ad8077b3 | 60e3c329dba93260852c3bc54ec8b6472d4281a9 | libhb: Add Bwdif as a deinterlace filter | **Linked issues**
[#3193](https://github.com/HandBrake/HandBrake/issues/3193)
**Description of Change:**
Adds _Bwdif_ ("Bob Weaver Deinterlacing Filter") to the list of available deinterlace filter in HandBrake.
The implementation mostly follow the one for Yadif; it uses the FFmpeg filter internally.
It may be... | diff --git a/libhb/common.c b/libhb/common.c
index 247c2c00754b4..b82824a6e62cc 100644
--- a/libhb/common.c
+++ b/libhb/common.c
@@ -4327,7 +4327,11 @@ hb_filter_object_t * hb_filter_get( int filter_id )
break;
case HB_FILTER_DEINTERLACE:
- filter = &hb_filter_deinterlace;
+ ... | 5 | 3 | 2 | [{"id": "G0", "claim": "Bwdif's license (GPL3 in the VapourSynth port) is incompatible with HandBrake's GPL2 license, so the filter may not be usable in this repository.", "category": "legal", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new macro-generated filter assignmen... | null |
HandBrake__HandBrake__5218 | HandBrake/HandBrake | 5,218 | defect | 32587037eb98b7a7b6ff4e436fd8637e907ad824 | 297a110eb737bf1e3d9a9fc578524df194be4416 | Add support for excluded File extensions | **Description of Change:**
- Add support for excluding file extensions for batch scan.
- By Default: png, jpg, txt, srt, ssa, ass are excluded. Users can change this if they choose.
- Add a new preference to the Windows UI to allow controlling this option.
- Consolidated hb_scan and hb_scan2
#2541
**Tested... | diff --git a/libhb/batch.c b/libhb/batch.c
index 80d53c3f8e60..15967a067a23 100644
--- a/libhb/batch.c
+++ b/libhb/batch.c
@@ -22,12 +22,18 @@ static int compare_str(const void *a, const void *b)
return strncmp(*(const char**)a, *(const char**)b, PATH_MAX);
}
+static int endsWith (char* base, char* str) {
+ ... | 4 | 4 | 1 | [{"id": "G0", "claim": "hb_scan_init should make a copy of exclude_extensions because the scan runs on a different thread and the caller may free the list before that thread gets to use it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new entr... | null |
HandBrake__HandBrake__5899 | HandBrake/HandBrake | 5,899 | defect | 79d5ab69fe4f5264b40723b6dd7cebd87ee113e4 | ce5ab4d09d3f943ed4a6950c66cc0c4028770a46 | libhb: support multi-pass with VP9 Constant Quality mode | **Description of Change:**
This change adds support for multi-pass encoding with VP9 in CQ mode. There's an enhancement request open for this here: #1905
~I've only done this for the CLI in this PR as a) I don't immediately know how to do it in the various GUIs and b) I'm not sure if this will be accepted, or if ... | diff --git a/libhb/common.c b/libhb/common.c
index 301534cd43e1d..bcc6f2ec25245 100644
--- a/libhb/common.c
+++ b/libhb/common.c
@@ -1640,6 +1640,19 @@ int hb_video_multipass_is_supported(uint32_t codec)
}
}
+int hb_video_cq_multipass_is_supported(uint32_t codec)
+{
+ switch (codec)
+ {
+ case HB_V... | 9 | 8 | 1 | [{"id": "G0", "claim": "Existing presets that use constant quality with multi-pass enabled would silently get multi-pass turned on for VP9, so the preset major version should be bumped and a function added to disable multi-pass for existing CQ VP9 presets.", "category": "design", "verdict": "supported", "priority": "P1... | null |
HandBrake__HandBrake__6183 | HandBrake/HandBrake | 6,183 | defect | 8afe82183862793b44e9e20c942c727d8e7c0b99 | 6c3f00456b3d9b36280b2fc6d3033c8a5264d003 | hwaccel: enable DirectX11 decoding support for snapdragon devices | Adds support for DirectX hardware accelerated decoding on Snapdragon devices.
**Tested on:**
- [x] Windows 10+ (via MinGW)
- [ ] macOS 10.13+
- [ ] Ubuntu Linux | diff --git a/contrib/ffmpeg/module.defs b/contrib/ffmpeg/module.defs
index 94cb64b706c8..4616966d25c8 100644
--- a/contrib/ffmpeg/module.defs
+++ b/contrib/ffmpeg/module.defs
@@ -192,6 +192,7 @@ endif
ifeq (1,$(FEATURE.mf))
FFMPEG.CONFIGURE.extra += \
+ --enable-hwaccels \
--enable-encoder=h264_mf \
... | 3 | 3 | 1 | [{"id": "G0", "claim": "Instead of special-casing HB_DECODE_SUPPORT_MF to always enable the hardware decoder, the code should use the existing HB_DECODE_SUPPORT_FORCE_HW flag (which the reviewer would prefer to see settable via an additional CLI option rather than hard-coded).", "category": "design", "verdict": "suppor... | null |
HandBrake__HandBrake__6840 | HandBrake/HandBrake | 6,840 | defect | c76f765ccc9eccbf09dc6c1d77dae5aeaee85f87 | 84c787658c68553a1bfdd4b864e043dcd909e035 | Add new presets key for track names | HandBrake has always passed thru the source tracks names, or generated new ones in muxavformat.c, and it would be nice to disable these two automatic behaviors.
This PR adds three new preset keys:
- "AudioTrackNamePassthru": a boolean to enable or disable the source audio tracks names passthru
- "AudioAutomaticN... | diff --git a/libhb/common.c b/libhb/common.c
index 1c43c7a7f34d1..250e07e4cddec 100644
--- a/libhb/common.c
+++ b/libhb/common.c
@@ -1468,6 +1468,87 @@ const hb_rate_t* hb_audio_bitrate_get_next(const hb_rate_t *last)
return ((hb_rate_internal_t*)last)->next;
}
+const char * hb_audio_name_get_default(uint64_t l... | 4 | 2 | 2 | [{"id": "G0", "claim": "Asks whether the UX would put a checkbox and dropdown on each audio track of the behaviours screen, and flags that the subtitle naming option conflicts with #5736.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The combination of ... | null |
HandBrake__HandBrake__7693 | HandBrake/HandBrake | 7,693 | defect | 20fd8d36c989ddbbe0d75568a5b36dd8048ef300 | bda2c2a420f62294b26eab3feb7769534f350a54 | Part 2: First implementation of FFmpeg filters (videofilters) | **Description of Change:**
Add FFmpeg video filters to HandBrakeCLI. This is the second part of divided https://github.com/HandBrake/HandBrake/pull/7654.
**Tested on:**
- [ ] Windows 10+ (via MinGW)
- [x] macOS 10.13+
- [ ] Ubuntu Linux
| diff --git a/contrib/ffmpeg/module.defs b/contrib/ffmpeg/module.defs
index 78d476a4d1da..2687fee3ab74 100644
--- a/contrib/ffmpeg/module.defs
+++ b/contrib/ffmpeg/module.defs
@@ -81,6 +81,9 @@ FFMPEG.CONFIGURE.extra = \
--enable-filter=hwdownload \
--enable-filter=hwmap \
--enable-filter=hwupload \
+ ... | 4 | 4 | 3 | [{"id": "G0", "claim": "The new FFmpeg filters should be wrapped in the same way it is already done for filters like cropscale, format, rotate and deblock.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Since the enum order is the order the filters will ... | null |
Hankanman__Area-Occupancy-Detection__101 | Hankanman/Area-Occupancy-Detection | 101 | defect | a07b916ac65890695a5868037a24629b38d881fc | c7b490c2199e1a7c19dd047af58e5703bd6bf601 | Improve Reliability of Weights and Overall Probability | This pull request introduces several updates to the `area_occupancy` custom component, focusing on code simplification, improved maintainability, and enhanced test coverage. Key changes include the removal of unused methods, refactoring of probability calculations to use weights more effectively, and the introduction o... | diff --git a/.github/workflows/downloads.yml b/.github/workflows/downloads.yml
index 9f90d39b..8d056609 100644
--- a/.github/workflows/downloads.yml
+++ b/.github/workflows/downloads.yml
@@ -1,8 +1,10 @@
name: Update Downloads Badge
on:
- schedule:
- - cron: '0 0 * * 0'
+ pull_request:
+ branches:
+ - ... | 4 | 1 | 0 | [{"id": "G0", "claim": "The multiplication by 1.0 in the test's expected value is redundant and should be simplified to `expected = expected_post`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The unused `complementary_probability` function sh... | null |
Hankanman__Area-Occupancy-Detection__168 | Hankanman/Area-Occupancy-Detection | 168 | defect | 0acd5f07a5714cc99ebc7692dc3d11a93b5c421c | d424643095314ac8e07b9305123ea92b46eca02a | Implement asynchronous database initialization in AreaOccupancy | - Added async_init_database method to AreaOccupancyCoordinator for non-blocking database initialization.
- Updated async_setup_entry to call async_init_database, improving setup reliability.
- Adjusted tests to ensure async_init_database is awaited during setup, enhancing test coverage.
<!-- CURSOR_SUMMARY -->
---
... | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 9930f324..43550829 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -30,6 +30,8 @@ jobs:
- name: Run tests with pytest
run: |
pytest --cov=custom_components/area_occupancy --cov-report=xml --... | 3 | 3 | 0 | [{"id": "G0", "claim": "The initialize_database() docstring should clarify when the method is called directly (test environments with AREA_OCCUPANCY_AUTO_INIT_DB=1) versus when it should be called via hass.async_add_executor_job() (production).", "category": "documentation", "verdict": "supported", "priority": "P2", "s... | null |
Hankanman__Area-Occupancy-Detection__172 | Hankanman/Area-Occupancy-Detection | 172 | defect | 58df9a5c12c0f13cf6eda36e162092a56d9340b9 | 7572f516bddd8e6f72de0235015fc28c512f1ed2 | Feat/master delegation | This pull request introduces a robust master election and coordination system for multi-instance setups in the Area Occupancy integration. The changes ensure that only one instance (the "master") is responsible for saving to the database and performing certain maintenance tasks, while other instances ("non-masters") co... | diff --git a/custom_components/area_occupancy/__init__.py b/custom_components/area_occupancy/__init__.py
index e835161e..8b2c2c3d 100644
--- a/custom_components/area_occupancy/__init__.py
+++ b/custom_components/area_occupancy/__init__.py
@@ -85,8 +85,18 @@ async def async_setup_entry(hass: HomeAssistant, entry: Config... | 5 | 5 | 4 | [{"id": "G0", "claim": "When master election fails with SQLAlchemyError, OSError or RuntimeError, elect_master returns self.coordinator.entry_id, so the caller treats the instance as master despite the failed election, which can produce multiple masters; the fallback should return None (or raise) instead.", "category":... | null |
Hankanman__Area-Occupancy-Detection__186 | Hankanman/Area-Occupancy-Detection | 186 | defect | 4da46075f3d5eff3afc90c88ee6ab45fc870a45e | 515e42c5bafaaf36780ed031360164801ba983e0 | Refactor motion sensor probability logging and enhance test coverage | This pull request updates the motion sensor likelihood calculation logic and improves test coverage for scenarios with both sufficient and insufficient data. The main focus is to ensure that calculated probabilities are trusted when enough data is available, while default values are used when data is insufficient. Logg... | diff --git a/custom_components/area_occupancy/data/entity.py b/custom_components/area_occupancy/data/entity.py
index f8acb8d1..1b08820f 100644
--- a/custom_components/area_occupancy/data/entity.py
+++ b/custom_components/area_occupancy/data/entity.py
@@ -515,23 +515,24 @@ def _update_entity_likelihoods(
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new 'sufficient data' branch only considers total_occupied_time before keeping calculated probabilities, so with >=1h of occupied time but zero unoccupied samples it trusts the fallback prob_given_false (0.5) instead of the configured default, which can dramatically reduce accuracy for motio... | null |
Hankanman__Area-Occupancy-Detection__197 | Hankanman/Area-Occupancy-Detection | 197 | defect | bf2e73ed4d383c1a65b9de7a21eec124c19f0dce | aff69b867d907cba9f1292d4acbce491261bd82e | Bugfix: Database Pool Error | This pull request introduces improvements to the database save logic in `custom_components/area_occupancy/db.py`, focusing on reliability, efficiency, and error handling for area and entity data persistence. The main changes include adding debouncing to prevent rapid repeated saves, implementing retry logic with backof... | diff --git a/custom_components/area_occupancy/db.py b/custom_components/area_occupancy/db.py
index 17bd03bf..ed845d55 100644
--- a/custom_components/area_occupancy/db.py
+++ b/custom_components/area_occupancy/db.py
@@ -127,9 +127,10 @@ def __init__(
f"sqlite:///{self.db_path}",
echo=False,
... | 4 | 4 | 4 | [{"id": "G0", "claim": "The cleanup_orphaned_entities() call sits inside the try-except wrapping the entity save, so a cleanup failure is logged as \"Failed to save entity data\" even though the entity data was saved; cleanup should get its own try-except and error message, or the message should be generic.", "category... | null |
Hankanman__Area-Occupancy-Detection__216 | Hankanman/Area-Occupancy-Detection | 216 | defect | 97f9aab254b29ac5324b8df019463c836132f850 | d409558cdb2eb1abaa330a6b7208472a3c360e6e | Create All Areas Device | This pull request introduces a new `AllAreas` class to enable aggregation of occupancy data across all areas, refactors the codebase to use this aggregator for "All Areas" functionality, and cleans up the logic for handling area-specific and aggregated device info and probabilities. The changes improve maintainability ... | diff --git a/custom_components/area_occupancy/area/__init__.py b/custom_components/area_occupancy/area/__init__.py
index c3be66c9..cacb63bd 100644
--- a/custom_components/area_occupancy/area/__init__.py
+++ b/custom_components/area_occupancy/area/__init__.py
@@ -1,9 +1,11 @@
"""Area module for Area Occupancy Detection... | 1 | 1 | 1 | [{"id": "G0", "claim": "coordinator.device_info() does not handle area_name == ALL_AREAS_IDENTIFIER, so \"All Areas\" entities get fallback device info with entry_id as the identifier instead of delegating to AllAreas.device_info().", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introd... | null |
Hankanman__Area-Occupancy-Detection__242 | Hankanman/Area-Occupancy-Detection | 242 | defect | 8e83f50e108cc25f1d1961af69c2146ec3f6a838 | 53d5e6283fa313a8be308e0bc351ea52b1f5d5d3 | Add migration logic for multi-area entry conversion |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* Multi-area configuration support with automatic migration and consolidation of legacy area entries.
* **Chores / Bug Fixes**
* Registry cleanup of stale devices/entities during migration.
*... | diff --git a/custom_components/area_occupancy/migrations.py b/custom_components/area_occupancy/migrations.py
index 6c6d8731..b55d7365 100644
--- a/custom_components/area_occupancy/migrations.py
+++ b/custom_components/area_occupancy/migrations.py
@@ -4,13 +4,15 @@
import logging
from pathlib import Path
+from typin... | 11 | 5 | 3 | [{"id": "G0", "claim": "In `_combine_config_entries`, swallowing `ValueError` from `_convert_entry_to_area_config` lets a failed conversion leave `area_configs` shorter than `old_entries` while `async_migrate_entry` still uses `old_entries[0]` as target and removes all other entries, so migration can silently drop or m... | null |
Hankanman__Area-Occupancy-Detection__248 | Hankanman/Area-Occupancy-Detection | 248 | defect | b0df7815ef90390ba6bf9a5f9fc7e25fb0f410ed | 5d4c8bef566f5841a6f9c63521adb676b6495f78 | Add time-of-day-aware decay and sleep schedule configuration | closes #83
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* Global Settings: configurable sleep start/end schedule
* Added "Bathroom" area purpose
* Dynamic sleeping decay and Wasp‑in‑Box immediate-off behavior
* New area management menus... | diff --git a/.cursor/rules/documentation.mdc b/.cursor/rules/documentation.mdc
index e1f9a324..f9c19107 100644
--- a/.cursor/rules/documentation.mdc
+++ b/.cursor/rules/documentation.mdc
@@ -2,11 +2,11 @@
alwaysApply: true
---
-Documentation is written in the `docs` directory.
+Documentation is written in the `docs... | 6 | 3 | 2 | [{"id": "G0", "claim": "Passing purpose and sleep times into Decay makes the WASP override ineffective: for a WASP entity in a Sleeping area outside the sleep window, Decay.half_life returns the Relaxing half-life (~900s) instead of the intended ~0.1s immediate vacancy, contradicting the documented no-decay behavior, s... | null |
Hankanman__Area-Occupancy-Detection__265 | Hankanman/Area-Occupancy-Detection | 265 | defect | 99acbaa3e3307a90cca4b43fbb4c422ae85837c8 | 602e55f511dae85b05d44a87357485738d82f53f | Add numeric aggregation pathway and extend correlation analysis |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* Added numeric data aggregation with hourly and weekly statistics (min/max/avg/median/stddev) and improved analysis that combines recent raw samples with historical aggregates for better correlat... | diff --git a/custom_components/area_occupancy/const.py b/custom_components/area_occupancy/const.py
index c66b2bd3..19818929 100644
--- a/custom_components/area_occupancy/const.py
+++ b/custom_components/area_occupancy/const.py
@@ -191,12 +191,12 @@
# Database retention and aggregation constants
# Raw data retention... | 3 | 1 | 0 | [{"id": "G0", "claim": "Remove the unnecessary defensive check for None avg_value in convert_hourly_aggregates_to_samples, since hourly aggregates always have avg_value computed, or alternatively document that it is retained purely for defensive purposes.", "category": "maintainability", "verdict": "supported", "priori... | null |
Hankanman__Area-Occupancy-Detection__274 | Hankanman/Area-Occupancy-Detection | 274 | defect | 813ee19ac04b60165f2db629b692cc13e2747395 | 57967056a2a65f1feed8b6e2dd407de4b6456eb7 | Remove markdownlint and refactor tests with registry area IDs |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **Chores**
* Removed the Markdown Lint extension from development environment recommendations.
* **Tests**
* Tests updated to use registry-derived area identifiers instead of hardcoded names for improved reliab... | diff --git a/.vscode/extensions.json b/.vscode/extensions.json
index c3e9d5ef..15debc4f 100644
--- a/.vscode/extensions.json
+++ b/.vscode/extensions.json
@@ -2,7 +2,6 @@
"recommendations": [
"charliermarsh.ruff",
"ms-python.python",
- "prettier.prettier-vscode",
- "davidanson.vscode-markdownlint"
+ ... | 3 | 1 | 0 | [{"id": "G0", "claim": "In test_error_recovery_in_config_flow the second (valid) attempt relies on create_user_input(name=\"Living Room\") producing the \"living_room\" slug for CONF_AREA_ID, which may not resolve against real registry IDs, so apply the same registry ID to valid_input for consistency and reliable cover... | null |
Hankanman__Area-Occupancy-Detection__282 | Hankanman/Area-Occupancy-Detection | 282 | defect | 3cc8e84030423268367c73924a3af01fef28b422 | eb700991319ac448174c4e5f51af09f9dbae7000 | Update version to 2025.12.2 and migrate energy sensors to power sensors | - Incremented version in `pyproject.toml`, `const.py`, and `manifest.json` to 2025.12.2.
- Replaced references from energy sensors to power sensors across the codebase, including configuration, documentation, and migration scripts.
- Updated related documentation to reflect the change from energy to power sensors for... | diff --git a/blueprints/README.md b/blueprints/README.md
index 22508289..d1b91fe8 100644
--- a/blueprints/README.md
+++ b/blueprints/README.md
@@ -165,8 +165,8 @@ Before you begin, ensure you have the following:
- **Set Appropriate Idle Timeouts**:
- - Shorter timeouts save energy but may turn off lights too quic... | 7 | 2 | 1 | [{"id": "G0", "claim": "Entries at config version 13-14 with no energy_sensors/weight_energy keys are not version-bumped when _migrate_energy_to_power() removes nothing, so they re-enter the single-to-multi-area consolidation and can end up with nested CONF_AREAS that breaks AreaConfig validation; always bump v13-v14 e... | null |
Hankanman__Area-Occupancy-Detection__354 | Hankanman/Area-Occupancy-Detection | 354 | defect | a90f77b1df7fab0219f2307e4e448fda9dc6fb56 | c92e7c1b86cf394470ab22422899514c2db570a8 | Fix critical bugs, stop silent failures, add type safety | ## Summary
Comprehensive review-driven fix addressing 5 critical, 19 high, and 6 medium issues identified by specialized code analysis agents. The systemic pattern was "return default on error" — functions returning `None`/`{}`/`[]`/`0` on failure, indistinguishable from legitimate "no data" results.
### Phase 1: Cri... | diff --git a/.claude/settings.local.json b/.claude/settings.local.json
index 39e9a7a3..980fcce5 100644
--- a/.claude/settings.local.json
+++ b/.claude/settings.local.json
@@ -1,7 +1,12 @@
{
"permissions": {
"allow": [
- "Bash(uv run ruff check:*)"
+ "Bash(scripts/lint:*)",
+ "Bash(source:*)",
+ ... | 27 | 14 | 2 | [{"id": "G0", "claim": "Clear the stale `_area_to_remove` state when the user chooses edit or cancel, since it can linger across actions and risks accidental removal if flow state is reused.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add stack-t... | null |
Hankanman__Area-Occupancy-Detection__356 | Hankanman/Area-Occupancy-Detection | 356 | defect | c37b372d7622673ac8b6afd55f5781d57fdb157d | d1c575adb7210963e39457ceb8a1b22c9e8e3147 | Improve prior calculation accuracy | ## Summary
Production database analysis (28 days, 8 areas, 313K intervals) revealed systematic issues with prior calculations. This PR addresses five problems:
- **Broaden occupied interval ground truth** — Sleep and media sensors now contribute to ground truth alongside motion. Previously, 8 hours of nightly sleep i... | diff --git a/.claude/settings.local.json b/.claude/settings.local.json
index 540ae1d1..a5cbf7a7 100644
--- a/.claude/settings.local.json
+++ b/.claude/settings.local.json
@@ -12,7 +12,7 @@
"WebSearch",
"Bash(.venv/bin/ruff format:*)",
"Bash(.venv/bin/ruff check:*)",
- "Bash(.venv/bin/pytest te... | 10 | 6 | 1 | [{"id": "G0", "claim": "New inline comments in entity.py, queries.py, utils.py and the test files (including test_db_queries.py) should be full sentences ending with a period, per the project style guideline.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1",... | null |
Hankanman__Area-Occupancy-Detection__357 | Hankanman/Area-Occupancy-Detection | 357 | defect | c8102a610296ed102094806fd7bc3daf388fb9c3 | 3d804c980d36e9ff51cd8e4359a1d159ee35f1b3 | Add purpose-aware activity detection sensors | ## Summary
- Adds two new per-area sensors: **Detected Activity** (enum) and **Activity Confidence** (percentage)
- Detects activities like showering, cooking, sleeping, watching TV, working, etc. based on sensor signals and the area's configured purpose
- Scoring algorithm uses weighted indicators, normalizes by avai... | diff --git a/custom_components/area_occupancy/area/area.py b/custom_components/area_occupancy/area/area.py
index 2aeee1a3..41e0a5d7 100644
--- a/custom_components/area_occupancy/area/area.py
+++ b/custom_components/area_occupancy/area/area.py
@@ -19,6 +19,7 @@
DOMAIN,
MIN_PROBABILITY,
)
+from ..data.activity... | 4 | 1 | 0 | [{"id": "G0", "claim": "ActivityConfidenceSensor sets a hardcoded _attr_name so the existing \"activity_confidence\" translation string is never applied; it should set _attr_translation_key = \"activity_confidence\" and drop the hardcoded name, as DetectedActivitySensor already does.", "category": "maintainability", "v... | null |
Hankanman__Area-Occupancy-Detection__358 | Hankanman/Area-Occupancy-Detection | 358 | defect | fc31856c6509db5795ab22850d96277f0c34fe41 | 50e6938ce5c59ccfa00a4f5ddcf5e3b717a805ab | Fix activity detection accuracy | ## Summary
- **Device class filtering**: Media indicators now filter by HA `device_class` — `watching_tv` requires `tv`/`receiver`, `listening_to_music` requires `speaker`/`receiver`. A speaker playing white noise no longer triggers "watching_tv"
- **Confidence normalization**: Changed from `matched/possible_weight` to... | diff --git a/custom_components/area_occupancy/data/activity.py b/custom_components/area_occupancy/data/activity.py
index 6dde890f..f34fc316 100644
--- a/custom_components/area_occupancy/data/activity.py
+++ b/custom_components/area_occupancy/data/activity.py
@@ -45,6 +45,7 @@ class Indicator:
weight: float
re... | 3 | 2 | 0 | [{"id": "G0", "claim": "The new device-class filtering makes an all-entities-filtered indicator return (0.0, []) while missing sensors return (-1.0, []); document this intentional distinction if it is kept, or return (-1.0, []) to treat filtered-out device classes like missing sensors.", "category": "maintainability", ... | null |
Hankanman__Area-Occupancy-Detection__363 | Hankanman/Area-Occupancy-Detection | 363 | defect | 71b58f21ef583a46365ab9b8824e5af442543784 | 531f22045be7319813bc4f4cd6b1a5f0a1159ad9 | Add activity-based probability boost | ## Summary
- Detected activities (watching TV, showering, cooking, etc.) now boost occupancy probability proportionally in logit space
- Two-phase probability calculation breaks the circular dependency: `_base_probability()` (sensors only) feeds into `detect_activity()`, then `probability()` applies the activity boost
... | diff --git a/custom_components/area_occupancy/area/area.py b/custom_components/area_occupancy/area/area.py
index 41e0a5d7..dddf2599 100644
--- a/custom_components/area_occupancy/area/area.py
+++ b/custom_components/area_occupancy/area/area.py
@@ -19,9 +19,10 @@
DOMAIN,
MIN_PROBABILITY,
)
-from ..data.activit... | 4 | 3 | 2 | [{"id": "G0", "claim": "apply_activity_boost should return clamp_probability(base_probability) on the effective_boost <= 0 path so the returned value always respects the documented MIN/MAX range even when callers pass 0/1 or NaN.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduce... | null |
Hankanman__Area-Occupancy-Detection__366 | Hankanman/Area-Occupancy-Detection | 366 | defect | 1848d18b42a44dbc18c199d3ea2243c18c6ec2d1 | d4848aa7150645ade1bb7aaebfa81c609a52dc5d | Centralise purpose-specific config into Purpose class | ## Summary
- **min_prior**: Moved from hardcoded `PURPOSE_MIN_PRIORS` dict in `prior.py` into `Purpose` class field. Passageway (0.1) and driveway (0.05) get floors; all others default to 0.0.
- **awake_half_life**: Moved from hardcoded `PURPOSE_DEFINITIONS[AreaPurpose.RELAXING]` lookup in `decay.py` into `Purpose` cla... | diff --git a/custom_components/area_occupancy/config_flow.py b/custom_components/area_occupancy/config_flow.py
index cbf46e10..5fde6e9e 100644
--- a/custom_components/area_occupancy/config_flow.py
+++ b/custom_components/area_occupancy/config_flow.py
@@ -143,7 +143,7 @@
get_default_state,
get_state_options,
... | 4 | 2 | 0 | [{"id": "G0", "claim": "The new inline comment in custom_components/area_occupancy/data/prior.py should end with a period per the coding guidelines.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new test comment \"# Create a decay with a purp... | null |
Hankanman__Area-Occupancy-Detection__367 | Hankanman/Area-Occupancy-Detection | 367 | defect | 545a8fe9148ca55eb02c1e576bd7fa0e3d049db1 | e60580d64bc71a93b5adeb3e26e336431a033363 | Fix entities not appearing after config changes without reload | ## Summary
- When adding/editing areas or people via the options flow, the coordinator's internal state updated correctly but no new HA entities or devices were registered
- The area removal path already triggered `async_reload`; this applies the same pattern to all config change paths that affect entity registration:
... | diff --git a/custom_components/area_occupancy/config_flow.py b/custom_components/area_occupancy/config_flow.py
index 5fde6e9e..803c8436 100644
--- a/custom_components/area_occupancy/config_flow.py
+++ b/custom_components/area_occupancy/config_flow.py
@@ -2159,7 +2159,14 @@ async def async_step_manage_people(
... | 1 | 1 | 0 | [{"id": "G0", "claim": "In test_options_flow_area_config_add_new_area the AsyncMock for hass.config_entries.async_reload should be captured and asserted as awaited once with the entry_id, because as written the test would still pass if the reload call were removed.", "category": "testing", "verdict": "supported", "prio... | null |
Hankanman__Area-Occupancy-Detection__384 | Hankanman/Area-Occupancy-Detection | 384 | defect | 12e7b43fef44007a452368bace2b807f04b7c5a2 | 02b8d3bf36e180af3388c571a30c853beff42dd2 | fix: Recreate entities after sensor weight changes | ## Summary
- Sensor weight and probability changes via the config flow had no effect because Entity objects were never recreated
- Entities store `prob_given_true`, `prob_given_false`, and `weight` as instance attributes copied at creation time
- The settings-only update path now calls `area.entities.cleanup()` to recr... | diff --git a/custom_components/area_occupancy/__init__.py b/custom_components/area_occupancy/__init__.py
index 90fb5839..adb533cc 100644
--- a/custom_components/area_occupancy/__init__.py
+++ b/custom_components/area_occupancy/__init__.py
@@ -268,4 +268,5 @@ async def _async_entry_updated(hass: HomeAssistant, entry: Co... | 1 | 1 | 1 | [{"id": "G0", "claim": "The test asserts cleanup with assert_called_once() on an AsyncMock, which only verifies the coroutine was created and not that it was awaited, so use assert_awaited_once() to enforce the async contract and avoid masking bugs where cleanup is called but never awaited.", "category": "testing", "ve... | null |
Hankanman__Area-Occupancy-Detection__406 | Hankanman/Area-Occupancy-Detection | 406 | defect | 0eeb066c60f369a3d9c4ffd6ce599cc9850f01b6 | ba31eeef5720885408ff1162266e63599e5b22ea | fix: Prevent DB load from overwriting motion/sleep sensor probabilities | ## Summary
- Motion and sleep sensors now retain their configured probabilities during DB load instead of being overwritten by stored/correlation values
- Added `InputType` guard in `load_data` to skip probability restoration for motion and sleep sensor types
- Updated test to use `APPLIANCE` type instead of `MOTION` f... | diff --git a/custom_components/area_occupancy/db/operations.py b/custom_components/area_occupancy/db/operations.py
index df6eb7d7..bc02ca93 100644
--- a/custom_components/area_occupancy/db/operations.py
+++ b/custom_components/area_occupancy/db/operations.py
@@ -31,7 +31,7 @@
TIME_PRIOR_MAX_BOUND,
TIME_PRIOR_... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add an explicit regression test that motion and sleep entities keep their configured prob_given_true/prob_given_false after a DB reload even when the database holds different values.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
Hankanman__Area-Occupancy-Detection__407 | Hankanman/Area-Occupancy-Detection | 407 | defect | 0eeb066c60f369a3d9c4ffd6ce599cc9850f01b6 | 0e18ee01bd8f3e503856f04a9cd4dae9630a32a3 | fix: Persist last-prune timestamp after pruning intervals | ## Summary
- Added `session.commit()` after `set_last_prune_time` calls in `prune_old_intervals` to persist the metadata change
- Without this, the throttle check never found a valid timestamp, causing pruning to run on every analysis cycle
- Added test verifying the timestamp is actually persisted after pruning
Close... | diff --git a/custom_components/area_occupancy/db/operations.py b/custom_components/area_occupancy/db/operations.py
index df6eb7d7..83d46ebb 100644
--- a/custom_components/area_occupancy/db/operations.py
+++ b/custom_components/area_occupancy/db/operations.py
@@ -905,6 +905,7 @@ def prune_old_intervals(db: AreaOccupancy... | 4 | 3 | 2 | [{"id": "G0", "claim": "The new regression test should also assert the prune return value or remaining interval count so it guarantees the pruning path was actually exercised.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The delete path still commits ... | null |
Hankanman__Area-Occupancy-Detection__420 | Hankanman/Area-Occupancy-Detection | 420 | defect | adafb9e9eafc9a9d9142d14ed6b9b8c634d815cf | 477a425232a8d5643c2bc375b749ded1e86b4fb3 | fix: Trigger coordinator refresh on unknown→occupied transition | ## Summary
- Fix sensors going from `unknown` to `occupied` not triggering a coordinator refresh
- Changed `has_new_evidence()` to return `True` when entity becomes available with positive evidence (`None → True`)
- Single line fix: `return False` → `return bool(current_evidence)`
Closes #419
## Test plan
- [x] All 1... | diff --git a/custom_components/area_occupancy/data/entity.py b/custom_components/area_occupancy/data/entity.py
index ad2dcca1..cafa6572 100644
--- a/custom_components/area_occupancy/data/entity.py
+++ b/custom_components/area_occupancy/data/entity.py
@@ -563,12 +563,15 @@ def has_new_evidence(self) -> bool:
... | 2 | 1 | 1 | [{"id": "G0", "claim": "The new None→True branch reports unknown→occupied as new evidence but, unlike the existing transition path at lines 584-590, never stamps last_updated, leaving the recovered startup occupancy looking stale until the next edge transition.", "category": "correctness", "verdict": "supported", "prio... | null |
Hankanman__Area-Occupancy-Detection__424 | Hankanman/Area-Occupancy-Detection | 424 | defect | e1076b1bd79867a2c2e7a655a8dcde9a00496d04 | 39e91afdaa78cd744c6ba3e245602667cc5ff0c9 | fix: Apply configured environmental weight to all env sensor sub-types | ## Summary
Fixes #422
- The environmental weight setting was being ignored for all environmental sensor sub-types (temperature, humidity, illuminance, CO2, pressure, etc.)
- Root cause: weight lookup used `InputType.value` (e.g. `"temperature"`) as the `Weights` attribute name, but `Weights` only has a single `"envir... | diff --git a/custom_components/area_occupancy/data/entity.py b/custom_components/area_occupancy/data/entity.py
index e3b319d5..e22be646 100644
--- a/custom_components/area_occupancy/data/entity.py
+++ b/custom_components/area_occupancy/data/entity.py
@@ -37,6 +37,23 @@
_LOGGER = logging.getLogger(__name__)
+# Envi... | 3 | 2 | 2 | [{"id": "G0", "claim": "create_from_db still uses the old direct weight lookup (getattr(weights, input_type.value, None)), so entities loaded from the database won't resolve environmental sub-types to the shared \"environmental\" weight when the DB weight is invalid or missing.", "category": "correctness", "verdict": "... | null |
Hankanman__Area-Occupancy-Detection__429 | Hankanman/Area-Occupancy-Detection | 429 | defect | 0f006be445677d3369a357f6b830d1da0e7c8bc0 | 6be6d2857b7fa41bbdb23b916893157757f2c4e0 | feat: Add sensor health monitoring with HA repairs integration | ## Summary
- Adds a `HealthMonitor` class that detects degraded sensors during the hourly analysis pipeline
- Surfaces issues through Home Assistant's **repairs system** (not notifications) with actionable troubleshooting guidance
- Adds a per-area `sensor.<area>_sensor_health` diagnostic entity and `health_status` fi... | diff --git a/custom_components/area_occupancy/area/area.py b/custom_components/area_occupancy/area/area.py
index 6e46871a..5c7c467c 100644
--- a/custom_components/area_occupancy/area/area.py
+++ b/custom_components/area_occupancy/area/area.py
@@ -21,6 +21,7 @@
)
from ..data.activity import ActivityId, DetectedActivit... | 9 | 7 | 5 | [{"id": "G0", "claim": "Repair issues keyed by area_name are orphaned when an area is renamed, removed, or unloaded, because deletion only revisits IDs still reachable during a later check_health(); use a stable area identifier in _issue_id() and add an explicit teardown path that deletes still-active issues.", "catego... | null |
Hankanman__Area-Occupancy-Detection__438 | Hankanman/Area-Occupancy-Detection | 438 | defect | 3e813a5a57681774e5e9f1ecdc7d8b7ed3608300 | 4d4023b6aa96a0505429aeb1e70baaa5aed37db6 | fix: purge learned history on entry/area removal (#436) | Fixes #436.
## Summary
- `async_remove_entry` was a no-op, so removing the integration left every row in `.storage/area_occupancy.db` intact. Re-installing picked up the old history.
- Implement `async_remove_entry`: for each area in the removed entry, resolve its `area_name` (DB lookup by `area_id` first, HA area-re... | diff --git a/custom_components/area_occupancy/__init__.py b/custom_components/area_occupancy/__init__.py
index af775caa..2381c26c 100644
--- a/custom_components/area_occupancy/__init__.py
+++ b/custom_components/area_occupancy/__init__.py
@@ -2,16 +2,43 @@
from __future__ import annotations
+from contextlib import... | 8 | 7 | 3 | [{"id": "G0", "claim": "The create_engine()/connect()/execute() block in async_remove_entry does synchronous SQLite I/O on the event loop and should be run in the executor via hass.async_add_executor_job.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim"... | null |
Hankanman__Area-Occupancy-Detection__446 | Hankanman/Area-Occupancy-Detection | 446 | defect | 578a07e826a2a536ea6f33b37406749d612d35a9 | 83c3831a95e73429fae550d6f47a5d1ea1a661c2 | Fix TypeError on naive vs aware datetime in health checks | ## Summary
`dt_util.utcnow()` returns a timezone-aware datetime, but `entity.last_updated` can be timezone-naive when restored from storage. Subtracting them raises:
```
TypeError: can't subtract offset-naive and offset-aware datetimes
```
This affects two methods in `custom_components/area_occupancy/data/health.py`... | diff --git a/custom_components/area_occupancy/data/health.py b/custom_components/area_occupancy/data/health.py
index 39504fa0..75fb2f02 100644
--- a/custom_components/area_occupancy/data/health.py
+++ b/custom_components/area_occupancy/data/health.py
@@ -254,7 +254,7 @@ def _check_stuck_sensor(self, entity: Entity, now... | 2 | 2 | 0 | [{"id": "G0", "claim": "The naive-vs-aware bug remains in _check_never_triggered (health.py:357): `now - entity.last_updated` is the same subtraction the PR fixes elsewhere, so an available entity whose last_updated was restored naive from storage would still raise TypeError.", "category": "correctness", "verdict": "su... | null |
Hankanman__Area-Occupancy-Detection__447 | Hankanman/Area-Occupancy-Detection | 447 | defect | 4dc22cf157ea4cef20f674482374a60d668a3f31 | b4c6cad9389ffabd5f2ebaca89f3f3f8d88c44a7 | feat(diagnostics): add config entry diagnostics export | ## Summary
Adds Home Assistant core's `async_get_config_entry_diagnostics` so users can capture a structured snapshot of integration runtime state without enabling DEBUG logging. Today, when a user reports "occupancy looks wrong" or "stuck at detected" (e.g. #435, #444, #445), the only debug surface is module-level DE... | diff --git a/custom_components/area_occupancy/diagnostics.py b/custom_components/area_occupancy/diagnostics.py
new file mode 100644
index 00000000..1f52c567
--- /dev/null
+++ b/custom_components/area_occupancy/diagnostics.py
@@ -0,0 +1,279 @@
+"""Diagnostics support for Area Occupancy Detection.
+
+Exposes a structured... | 2 | 1 | 0 | [{"id": "G0", "claim": "The defensive except blocks in the diagnostics builders should log failures with stack traces (_LOGGER at debug level with exc_info=True) and catch specific exceptions instead of only storing repr(err) with a broad `except Exception`.", "category": "maintainability", "verdict": "supported", "pri... | null |
Hankanman__Area-Occupancy-Detection__452 | Hankanman/Area-Occupancy-Detection | 452 | defect | c0dd63e5ee67625b7e96dd91c8792ea0b3147cd6 | 2e7e8366caca51640554e4432765fa14c60ad39c | fix(analysis): cancellable, bisect-indexed correlation pipeline (#450) | Closes #450.
## Summary
Two bugs that compounded into the symptom on #450 — HA Core pegged near 100% CPU for 4-5 minutes after restart, and a `Task … was still running after final writes shutdown stage` warning when the user tried to remove the integration.
### 1. Analysis hot loop was quadratic-ish with re-conversi... | diff --git a/custom_components/area_occupancy/coordinator.py b/custom_components/area_occupancy/coordinator.py
index cd912d34..f1912755 100644
--- a/custom_components/area_occupancy/coordinator.py
+++ b/custom_components/area_occupancy/coordinator.py
@@ -10,7 +10,8 @@
# Home Assistant imports
from homeassistant.con... | 3 | 3 | 3 | [{"id": "G0", "claim": "The guard only covers callbacks entering run_analysis() after shutdown was already signalled; if HA stops while run_full_analysis() is in flight, the finally block still schedules a fresh analysis timer, leaving a new analysis callback behind during shutdown/reload.", "category": "correctness", ... | null |
Hankanman__Area-Occupancy-Detection__459 | Hankanman/Area-Occupancy-Detection | 459 | defect | 48b28b537048dce900c4a079f8f908a86e138f02 | 180a93a4caae55017fba7ffc3f861ec2b58cafea | fix(health): silence false-positive repairs from #455 | Closes #455.
Three related bugs caused the Repair panel to spam users with empty, recurring health-issue cards after upgrading to 2026.5.1.
## Summary
- **Empty repair bodies (`translations/en.json`)** — the file was missing the entire `issues` block, so HA rendered every health repair as a title-only card with no d... | diff --git a/custom_components/area_occupancy/data/health.py b/custom_components/area_occupancy/data/health.py
index d23af3ac..025b30b7 100644
--- a/custom_components/area_occupancy/data/health.py
+++ b/custom_components/area_occupancy/data/health.py
@@ -198,6 +198,13 @@ def __init__(self, area_name: str, area_id: str,... | 4 | 3 | 1 | [{"id": "G0", "claim": "Mirror the sensor/pipeline scope split on the resolved log path too: _update_repair_issues() still logs every resolved ID as 'Resolved %d sensor health issue(s)' even when only pipeline issues cleared, leaving the same scope mismatch on recovery.", "category": "correctness", "verdict": "supporte... | null |
Hankanman__Area-Occupancy-Detection__472 | Hankanman/Area-Occupancy-Detection | 472 | defect | 368c03a9b218267b3fea747ceb37c20bc41db6f8 | 8c3feda0f61187c55906e1ef2d00db764747df01 | feat(health): add integration-level toggle to disable repair monitoring | ## Summary
Adds a "Sensor health monitoring" boolean to **Global Settings** (default **on**). When off, both sensor- and pipeline-scope health checks short-circuit at the analysis-pipeline call sites and existing repair issues are cleared via a new `HealthMonitor.clear_all_issues` helper, so the HA Repairs UI empties ... | diff --git a/custom_components/area_occupancy/config_flow.py b/custom_components/area_occupancy/config_flow.py
index 89446a4d..5fbe5831 100644
--- a/custom_components/area_occupancy/config_flow.py
+++ b/custom_components/area_occupancy/config_flow.py
@@ -62,6 +62,7 @@
CONF_DOOR_ACTIVE_STATE,
CONF_DOOR_SENSORS... | 1 | 1 | 1 | [{"id": "G0", "claim": "In HealthMonitor.clear_all_issues(), the early return when no registry issues are tracked skips self._issues.clear(), which can leave stale in-memory issues while monitoring is disabled; clear _issues unconditionally and only guard the deletion and logging.", "category": "correctness", "verdict"... | null |
HansKristian-Work__vkd3d-proton__1030 | HansKristian-Work/vkd3d-proton | 1,030 | defect | 7d4ed668816bce419660c57a688bd464f130d699 | 13a00d4422c838c71bf3adcc8557ec4b68524486 | Implement correct behavior of multiple retrievals of pipeline state from libraries. | Both MHR and Elden Ring retrieve the same pipelines multiple times. The D3D12 pipeline library API is designed so that multiple retrievals is very fast and reuses an existing internally referenced state object. Avoids us having to validate, decompress, create SPIR-V objects, create pipeline cache blob, create pipeline,... | diff --git a/libs/vkd3d/cache.c b/libs/vkd3d/cache.c
index 16de9ac732..ce77abcb25 100644
--- a/libs/vkd3d/cache.c
+++ b/libs/vkd3d/cache.c
@@ -34,6 +34,10 @@ struct vkd3d_cached_pipeline_data
const void *blob;
size_t blob_length;
size_t is_new; /* Avoid padding issues. */
+ /* Need to internally hold ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The device reference should be acquired when the pipeline state's public refcount goes from 0 to 1 and released when the public refcount reaches 0, and this behaviour should be tested; at S1 the PR instead releases the device reference only when the internal refcount hits 0.", "category": "corre... | null |
HansKristian-Work__vkd3d-proton__1106 | HansKristian-Work/vkd3d-proton | 1,106 | defect | 5a0c8289d84fdd85503ea5226ff08c93eba09b79 | 63aa05adc60978e17be8900cd09cb67462ded144 | Minor test cleanup | Fix #1105. | diff --git a/libs/vkd3d/resource.c b/libs/vkd3d/resource.c
index a35bc7167c..9552011460 100644
--- a/libs/vkd3d/resource.c
+++ b/libs/vkd3d/resource.c
@@ -1389,18 +1389,12 @@ static void d3d12_resource_get_tiling(struct d3d12_device *device, struct d3d12_
tile_count += packed_tiles;
- if (standard_m... | 1 | 1 | 0 | [{"id": "G0", "claim": "The WARN added before forcing rt_count to 0 does not add useful information in a debugging scenario and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
HansKristian-Work__vkd3d-proton__118 | HansKristian-Work/vkd3d-proton | 118 | defect | 00e956dfac19faf879d614fb2548ccab93f59e02 | 300632937ca8cac6278df186e3a1f52bdcfd3871 | Implement CopyTiles | Title. Also fixes a bug when calling `UpdateTileMappings` for an image that has no mip tail. | diff --git a/tests/d3d12.c b/tests/d3d12.c
index 538c0703e0..92a697fd56 100644
--- a/tests/d3d12.c
+++ b/tests/d3d12.c
@@ -357,8 +357,7 @@ static void get_buffer_readback_with_command_list(ID3D12Resource *buffer, DXGI_F
resource_desc.Flags = D3D12_RESOURCE_FLAG_DENY_SHADER_RESOURCE;
hr = ID3D12Resource_GetH... | 1 | 1 | 0 | [{"id": "G0", "claim": "The formatting of the newly added test_copy_tiles code in tests/d3d12.c, which uses 2-space indentation instead of the project's standard, should be fixed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
HansKristian-Work__vkd3d-proton__141 | HansKristian-Work/vkd3d-proton | 141 | defect | cbdf6f88d2b784e62000e38875b424a7047c0ff5 | 472f810d4b17d252a624c4118c55baaa31a0d415 | Support fence rewinding | With timeline semaphores, we can reasonably implement this feature. | diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c
index 8f788d2030..d0c86dea5b 100644
--- a/libs/vkd3d/command.c
+++ b/libs/vkd3d/command.c
@@ -561,13 +561,31 @@ static bool d3d12_fence_can_elide_wait_semaphore_locked(struct d3d12_fence *fenc
return fence->value >= value;
}
+static void d3d12_fence_wait_... | 1 | 1 | 0 | [{"id": "G0", "claim": "On the unexpected failure to create the new timeline semaphore, return early instead of only logging it and continuing into the clunky else block below.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
HansKristian-Work__vkd3d-proton__1458 | HansKristian-Work/vkd3d-proton | 1,458 | defect | c4656d8846104b5b4dbd15cb718c905e45cac4b5 | 340b6ca7dbf9583b5e53102350702caf3e934e3a | d3d12, d3d12core: Refactor to move main code to D3D12Core | Move the main bulk of the code to d3d12core, and expose an interface to access.
This allows us to pass the new test that prove that the vtable is resident in d3d12core going forward.
Essentially turns d3d12 into a slim wrapper.
Signed-off-by: Joshua Ashton <joshua@froggi.es> | diff --git a/tests/d3d12_device.c b/tests/d3d12_device.c
index 51ecb7001a..09e349dac3 100644
--- a/tests/d3d12_device.c
+++ b/tests/d3d12_device.c
@@ -1354,8 +1354,11 @@ void test_object_interface(void)
hr = ID3D12Object_GetPrivateData(object, &WKPDID_D3DDebugObjectName, &size, NULL);
ok(hr == DXGI_ER... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new test_vtable_origins test returns without releasing the device it created.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test should use GetModuleHandle for d3d12core after creating the d3d12 device instead of LoadLib... | null |
HansKristian-Work__vkd3d-proton__1611 | HansKristian-Work/vkd3d-proton | 1,611 | defect | 4ac10715149a1315c0d89479339b825bbcf35c53 | 800f469615806c3e424c12f35a1475eb092e6266 | vkd3d: Implement negative viewport height feature. | This mirrors a Vulkan feature and doesn't require any emulation.
@HansKristian-Work LMK if you'd prefer I de-duplicate the test code. | diff --git a/libs/vkd3d/device.c b/libs/vkd3d/device.c
index 39c7102b1f..0a00cd925f 100644
--- a/libs/vkd3d/device.c
+++ b/libs/vkd3d/device.c
@@ -4088,12 +4088,9 @@ static HRESULT STDMETHODCALLTYPE d3d12_device_CheckFeatureSupport(d3d12_device_i
return E_INVALIDARG;
}
- data-... | 2 | 2 | 1 | [{"id": "G0", "claim": "The assert(VKD3D_MIN_API_VERSION >= VK_API_VERSION_1_2) in d3d12_device_caps_init_feature_options13 is misleading about the negative-viewport requirement.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The negative-viewpo... | null |
HansKristian-Work__vkd3d-proton__1843 | HansKristian-Work/vkd3d-proton | 1,843 | defect | 132ffb3d0e5d1024585330af0604f518fd50a90d | a2b1aa5d9ffeff2273874e9eb0ebbda73d9aaf8f | Handle global RS mismatch better | Warhammer 40k: Darktide relies on this to ... work when NVAPI is enabled. Native drivers seem more or less robust against this, so we need to be more robust too, sigh ... | diff --git a/include/private/hashmap.h b/include/private/hashmap.h
index 2809a75944..c55bb0abf4 100644
--- a/include/private/hashmap.h
+++ b/include/private/hashmap.h
@@ -292,4 +292,15 @@ static inline uint64_t hash_fnv1_iterate_string(uint64_t h, const char *str)
return h;
}
+static inline uint64_t hash_fnv1_i... | 1 | 1 | 0 | [{"id": "G0", "claim": "The byte-wise hash_fnv1_iterate_data helper may be slow for hashing blobs, so it might be worth hashing per dword and gathering the trailing unaligned bytes by hand.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
HansKristian-Work__vkd3d-proton__1906 | HansKristian-Work/vkd3d-proton | 1,906 | defect | e64116359d0b8d6de425ad6935a462408ef1f601 | a6f6d8cdebb6ef81fd1f320a7a59f3fd603388b9 | vkd3d: proper return values for formats that are valid but not supported. | Found a game engine that was doing it's initial checking of formats fail because E_INVALIDARG was returned for DXGI_FORMAT_R1_UNORM. This format is unspecified in the required and optional format list in msdn but D3D12 returns E_FAIL instead of E_INVALIDARG.
This diff returns E_INVALIDARG if the format is not a vali... | diff --git a/libs/vkd3d/device.c b/libs/vkd3d/device.c
index 0b1bd8766e..894abfc234 100644
--- a/libs/vkd3d/device.c
+++ b/libs/vkd3d/device.c
@@ -3728,6 +3728,12 @@ static HRESULT d3d12_device_get_format_support(struct d3d12_device *device, D3D1
const struct vkd3d_format *format;
VkResult vr;
+ if (!is_... | 9 | 8 | 2 | [{"id": "G0", "claim": "is_valid_format could be written as a range check instead of a humongous switch.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "SAMPLER_FEEDBACK formats are required (not unspecified) at feature level 12.2, so they should... | null |
HansKristian-Work__vkd3d-proton__1939 | HansKristian-Work/vkd3d-proton | 1,939 | defect | b9a16bb568204bc944c1097cdad52f997976b2c9 | d3ba646251fdce690ed76d4d6fc7c13574bd23f7 | Use dynamic rasterization samples for multisampled PSOs | Fixes #1839 (hopefully). | diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c
index b8ba7e7e21..0912c1fbc6 100644
--- a/libs/vkd3d/command.c
+++ b/libs/vkd3d/command.c
@@ -5979,6 +5979,12 @@ static bool d3d12_command_list_update_graphics_pipeline(struct d3d12_command_lis
list->command_buffer_pipeline = vk_pipeline;
}
+ /... | 4 | 4 | 1 | [{"id": "G0", "claim": "The new gating condition `(!key || !key->rasterization_samples)` seems strange; the reviewer would expect `!key || key->rasterization_samples`, since when rasterization_samples is 0 (no RTs) rasterization samples is static.", "category": "correctness", "verdict": "supported", "priority": "P1", "... | null |
HansKristian-Work__vkd3d-proton__1941 | HansKristian-Work/vkd3d-proton | 1,941 | defect | 7ffe59583071c9d5b57f40392355eb5b9d9e7202 | 1902a0be5ecb566b13923040728889553cd3484f | vkd3d: Implement fallback when 2D sparse is not supported. | Relevant for DS sparse on RADV. Convert to a committed resource and pretend all pages are mapped at all times.
Technically out of spec, but should be good enough to work around games until we have proper support.
Fixes #1924. | diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c
index 0912c1fbc6..5ed3b26e8a 100644
--- a/libs/vkd3d/command.c
+++ b/libs/vkd3d/command.c
@@ -16833,6 +16833,13 @@ static void STDMETHODCALLTYPE d3d12_command_queue_UpdateTileMappings(ID3D12Comma
iface, resource, region_count, region_coords, region_s... | 1 | 1 | 0 | [{"id": "G0", "claim": "The FIXME on ignored UpdateTileMapping calls could get spammy if an app calls it per frame (or on a non-reserved resource), so demote it to WARN and keep the FIXME on resource creation.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
HansKristian-Work__vkd3d-proton__203 | HansKristian-Work/vkd3d-proton | 203 | defect | debb93f38aa64b40b4fb8a0f3989c1d55391c349 | 42edb097fb5e6bffeceb0b32d94744559d6253c6 | Make MSVC compile clean | Adds some warning disable flags to vkd3d (as well as dxil-spirv) to remove the more useless warnings MSVC emits. The more relevant warnings, GCC does not seem to catch with our current flags, so fixed them as well.
MSVC now compiles clean, so we should be able to catch actual stupid bugs now without being boggled do... | diff --git a/demos/demo_win32.h b/demos/demo_win32.h
index 10123c53dc..198b0dff1c 100644
--- a/demos/demo_win32.h
+++ b/demos/demo_win32.h
@@ -199,12 +199,12 @@ static inline bool demo_init(struct demo *demo, void *user_data)
wc.cbClsExtra = 0;
wc.cbWndExtra = 0;
wc.hInstance = GetModuleHandle(NULL);
- ... | 2 | 1 | 0 | [{"id": "G0", "claim": "read_uint32 could take void* so the enum-pointer arguments the PR wraps in (uint32_t *) casts can be passed directly.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The (char **) cast on the vkd3d_free(extensions) calls could be e... | null |
HansKristian-Work__vkd3d-proton__2053 | HansKristian-Work/vkd3d-proton | 2,053 | defect | ebe7279e7960d204f5b1bd3d89408929140cdd0f | b7c9ffd8e6efbc2a68f4a4c1bf4ab4b2daf2a4a2 | Extend `ID3D12DXVKInteropDevice` into `ID3D12DXVKInteropDevice1` to add `VkCommandBuffer` interop | Add functionality for grabbing the `VkCommandBuffer` which is internal to a `ID3D12CommandList` object. This allows for applications to do interop using DX12 synchronization primitives but enqueue work onto queues which are otherwise not exposed through traditional DX12 APIs.
This will be used as a basis for `dxvk-n... | diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c
index 4d94d33584..f36e0fe7c9 100644
--- a/libs/vkd3d/command.c
+++ b/libs/vkd3d/command.c
@@ -26,6 +26,9 @@
#include "vkd3d_renderdoc.h"
#endif
+static struct vkd3d_queue_family_info *d3d12_device_get_vkd3d_queue_family_from_index(
+ struct d3d12_devic... | 5 | 5 | 2 | [{"id": "G0", "claim": "The forward-declared queue-family lookup's vk_queue_family_index parameter should be uint32_t, since that is the VK type for it.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The parameter named `family` in d3d12_device_get_... | null |
HansKristian-Work__vkd3d-proton__211 | HansKristian-Work/vkd3d-proton | 211 | defect | e7d8f1c02023cd02fe32713c2021115177fca671 | faafef2b1707034ea684b3765079500882ef1b0f | vkd3d: Implement calibrated timestamps | Requires QueryPerformanceCounter to work properly, so no support on native Linux builds at the moment. | diff --git a/libs/vkd3d/device.c b/libs/vkd3d/device.c
index 6a9ae26aa9..59006fb47c 100644
--- a/libs/vkd3d/device.c
+++ b/libs/vkd3d/device.c
@@ -76,6 +76,7 @@ static const struct vkd3d_optional_extension_info optional_device_extensions[] =
VK_EXTENSION(KHR_SHADER_FLOAT16_INT8, KHR_shader_float16_int8),
VK_E... | 1 | 1 | 1 | [{"id": "G0", "claim": "vkd3d_physical_device_get_time_domains() returns false from a uint32_t function on error paths; the return value should be fixed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
HansKristian-Work__vkd3d-proton__2139 | HansKristian-Work/vkd3d-proton | 2,139 | defect | ea251471db8524216ac23f38afe9d141fff38a30 | f98cc099dd7f0f1ec89a51ccc8d98235a1519afc | Implement GPU upload heap. | God of War Ragnarok appears to use it.
Not 100% sure about the interaction with the existing system that promotes the regular UPLOAD_HEAP to rebar based on a budget.
I decided to go for the following:
- We only report support for the GPU_UPLOAD_HEAP if the existing logic has decided that we have a Rebar budget. Ot... | diff --git a/libs/vkd3d/device.c b/libs/vkd3d/device.c
index f9d200939c..4fb7b3e506 100644
--- a/libs/vkd3d/device.c
+++ b/libs/vkd3d/device.c
@@ -5673,6 +5673,13 @@ static D3D12_HEAP_PROPERTIES * STDMETHODCALLTYPE d3d12_device_GetCustomHeapPrope
heap_properties->MemoryPoolPreference = D3D12_MEMORY_POOL_L0... | 10 | 10 | 6 | [{"id": "G0", "claim": "The pull request should include tests for GPU upload heap creation (normal and custom heaps) and API validation around resource creation, folded into existing tests.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Once a GPU uploa... | null |
HansKristian-Work__vkd3d-proton__2156 | HansKristian-Work/vkd3d-proton | 2,156 | defect | 17aeb5c919c33acbce4e0c347a8b8a1286201ee5 | 16324e78600bfda840df4692381db2b6fb39b217 | Implement ID3DDestructionNotifier | I lost multiple brain cells writing this code, but the TL;DR is that *every* D3D12 COM object supports this interface, and according to the docs it's supposed to fire any registered callback *before* references to other objects are released, hence the jank around objects that we keep alive internally.
Apparently thi... | diff --git a/include/vkd3d_d3dcommon.idl b/include/vkd3d_d3dcommon.idl
index f2fd3ad6df..ea0fa79337 100644
--- a/include/vkd3d_d3dcommon.idl
+++ b/include/vkd3d_d3dcommon.idl
@@ -96,6 +96,21 @@ interface ID3D10Blob : IUnknown
typedef ID3D10Blob ID3DBlob;
cpp_quote("#define IID_ID3DBlob IID_ID3D10Blob")
+typedef voi... | 2 | 2 | 1 | [{"id": "G0", "claim": "The line break splitting d3d_destruction_notifier_notify(struct d3d_destruction_notifier *notifier) across two lines in libs/vkd3d/vkd3d_private.h seems unintentional.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In the... | null |
HansKristian-Work__vkd3d-proton__2202 | HansKristian-Work/vkd3d-proton | 2,202 | defect | 1e46096b123ad6ca1a1b290467cd0adf891cf432 | 261c1b2d5bf0ddbb1cba20823fd86582ed2a6df1 | Initialize page tables for sparse resources | Extends the existing function that allocates and binds the image metadata aspect to also initialize all page mappings to null.
For synchronization purposes, this uses the same approach as memory clears in order to avoid a full `vkQueueWaitIdle`. Resources in our test suite can take ~0.5ms to init, so doing this asyn... | diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c
index 33c7a5fe6f..05a2b7d73a 100644
--- a/libs/vkd3d/command.c
+++ b/libs/vkd3d/command.c
@@ -465,6 +465,27 @@ static void vkd3d_queue_flush_waiters(struct vkd3d_queue *vkd3d_queue,
vkd3d_queue_release(vkd3d_queue);
}
+void vkd3d_add_wait_to_all_queues(st... | 1 | 1 | 1 | [{"id": "G0", "claim": "Signalling the init timeline value while sparse operations run out of order with normal submissions is flawed; a wait for the previous value is needed to be safe.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
HansKristian-Work__vkd3d-proton__2252 | HansKristian-Work/vkd3d-proton | 2,252 | defect | 747c04ceb1da6baa80784124b3b60c5c7a8a9382 | a515109e0236d04eb07768bb2f0878f2d2c34967 | Fix RGBA <-> BCn image copies | Basically changes `vk_image_copy_from_d3d12` to do all the relevant math on compressed blocks rather than texels in order to fix various issues with copies between different formats. | diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c
index e1e4dea6af..45e2d41500 100644
--- a/libs/vkd3d/command.c
+++ b/libs/vkd3d/command.c
@@ -7587,59 +7587,91 @@ static bool vk_image_copy_from_d3d12(VkImageCopy2 *image_copy,
const struct vkd3d_format *src_format, const struct vkd3d_format *dst_format,... | 1 | 1 | 0 | [{"id": "G0", "claim": "The ok() assertions added in test_copy_texture_bc_rgba pass a format string that prints hr without supplying the hr argument, producing format warnings; add the missing hr argument to each call.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
HansKristian-Work__vkd3d-proton__2391 | HansKristian-Work/vkd3d-proton | 2,391 | defect | 39115145c18e554c4b12ae3e8d47913144c6146a | fdd3c47c4ea4d96f8189eeba5e508e9099fb0034 | vkd3d-shader: Fix cull/clip distance used as shader input. | Fixes #2379.
Highly cursed in that we simply didn't support clip/cull as shader input at all, and multi-dimensional arrays were also not really supported - except in PS because PS inputs use different instructions compared to everything else, but we weren't declaring it correctly there either.
Can't really reuse ... | diff --git a/libs/vkd3d-shader/spirv.c b/libs/vkd3d-shader/spirv.c
index dd67c295ec..7615e2a0ae 100644
--- a/libs/vkd3d-shader/spirv.c
+++ b/libs/vkd3d-shader/spirv.c
@@ -2380,6 +2380,8 @@ struct vkd3d_dxbc_compiler
uint32_t private_output_variable_array_idx[MAX_REG_OUTPUT + 1]; /* 1 entry for oDepth */
uint3... | 2 | 2 | 1 | [{"id": "G0", "claim": "The newly declared clip_cull_index and clip_cull_size variables can potentially be used uninitialized (only clip_cull_size is zeroed before use).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "If the PR fixes Vulkan validatio... | null |
HansKristian-Work__vkd3d-proton__2425 | HansKristian-Work/vkd3d-proton | 2,425 | defect | 2c42980e8bcf8723bc041db2c7683652a3e19960 | dcf9b4dee0ef225bdbbf97d5e771965d169b1fd1 | tests: fix small-texture allocation size tests for Adreno | This fix tries to address failures on Adreno (via Turnip) in the `test_suballocate_small_textures_size` test case. Failures were initially observed on very narrow textures, but there's enough other conditions at play (15% of tests were failing) that it might not make sense to provide specific exceptions for expected fa... | diff --git a/tests/d3d12_resource.c b/tests/d3d12_resource.c
index 6e29e88693..98ed71512a 100644
--- a/tests/d3d12_resource.c
+++ b/tests/d3d12_resource.c
@@ -2130,14 +2130,47 @@ void test_suballocate_small_textures_size(void)
* It is unknown what native does here. */
is_bugge... | 3 | 3 | 0 | [{"id": "G0", "claim": "The opening brace of the Adreno branch should be placed on its own next line instead of the end of the `if` line.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The declaration `unsigned layer_size = 0;` should be spelled... | null |
HansKristian-Work__vkd3d-proton__2480 | HansKristian-Work/vkd3d-proton | 2,480 | defect | 7e829e88364f9429596b14d0c0ea0205e1337edc | 0a07d3ffe911e0eea9e0592e9a120ecb4f1ea2c0 | Deal with edge cases in TEX2D/TEX2DARRAY aliasing on NVIDIA | Closes https://github.com/HansKristian-Work/vkd3d-proton/issues/2471.
This isn't well defined on Vulkan, but it is on D3D sadly. Fortunately, we can make it work fairly easily. | diff --git a/libs/vkd3d/resource.c b/libs/vkd3d/resource.c
index 235ffe8232..69c61231af 100644
--- a/libs/vkd3d/resource.c
+++ b/libs/vkd3d/resource.c
@@ -5838,6 +5838,22 @@ static void vkd3d_create_buffer_srv(vkd3d_cpu_descriptor_va_t desc_va,
VK_CALL(vkUpdateDescriptorSets(device->vk_device, vk_write_count, ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a FIXME_ONCE (or similar) in vkd3d_texture_view_desc_fixup to remind maintainers that this NVIDIA 2D-to-2D_ARRAY remap workaround exists in case it causes problems later.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
HansKristian-Work__vkd3d-proton__2510 | HansKristian-Work/vkd3d-proton | 2,510 | defect | e8ab710947844126795d235d0bbc0dc37551e6bf | 77ffc3ce26c80b976bb68c141ee719c0ea1db9eb | Test and handle RGB9E5 write mask behaviour | TLDR radv is borked out of the box when rendering RGB9E5 with `RGB_` write mask, so we need to explicitly enable alpha. Spec doesn't say anything about alpha, so I'm assuming it's *supposed* to be ignored, but might as well work around this for now.
See mesa issue [13371](https://gitlab.freedesktop.org/mesa/mesa/-/i... | diff --git a/libs/vkd3d/state.c b/libs/vkd3d/state.c
index db60c1cd59..e19854e042 100644
--- a/libs/vkd3d/state.c
+++ b/libs/vkd3d/state.c
@@ -3505,7 +3505,7 @@ static enum VkBlendOp vk_blend_op_from_d3d12(D3D12_BLEND_OP op)
}
}
-static void blend_attachment_from_d3d12(struct VkPipelineColorBlendAttachmentState... | 2 | 1 | 0 | [{"id": "G0", "claim": "Setting alpha may be banned for RGB9E5 render targets per the author's (possibly mistaken) reading of the spec, in which case there is no spec-compliant way to render to RGB9E5 that actually works.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"i... | null |
HansKristian-Work__vkd3d-proton__260 | HansKristian-Work/vkd3d-proton | 260 | defect | 2d22317f31dda671dc12505c691a44179242ca0c | 3062cdf64e5693c9c61a212a9575e5843380f513 | Implement WriteBufferImmediate | Title. Passes the already existing test for WriteBufferImmediate and silences log spam in Horizon Zero Dawn. Perf impact in that game seems acceptable even with the fallback path. | diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c
index 3ccb514a6b..bcebcd77a6 100644
--- a/libs/vkd3d/command.c
+++ b/libs/vkd3d/command.c
@@ -6645,20 +6645,67 @@ static void STDMETHODCALLTYPE d3d12_command_list_SetViewInstanceMask(d3d12_comma
FIXME("iface %p, mask %#x stub!\n", iface, mask);
}
+static ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The offset computation should not add resource->heap_offset, because the resource obtained from dereferencing the VA is the heap itself, not the resource.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The assignment of stage... | null |
HansKristian-Work__vkd3d-proton__2607 | HansKristian-Work/vkd3d-proton | 2,607 | defect | 13312057bcb553950a077343280eff674ca67e3e | f488963092062383615538d9ebde0c4fb66eaf58 | Fix some edge cases for embedded root signatures | Fix #2605. | diff --git a/libs/vkd3d/state.c b/libs/vkd3d/state.c
index beb30daf33..3e7e39857b 100644
--- a/libs/vkd3d/state.c
+++ b/libs/vkd3d/state.c
@@ -5522,29 +5522,72 @@ static HRESULT d3d12_pipeline_create_private_root_signature(struct d3d12_device
VkPipelineBindPoint bind_point, const struct d3d12_pipeline_state_de... | 1 | 1 | 1 | [{"id": "G0", "claim": "In the new multi-stage loop a failed CreateRootSignature return is treated as \"shader doesn't define root signature\", conflating a shader without an embedded root signature with a genuine error (which is silently skipped instead of reported).", "category": "correctness", "verdict": "supported"... | null |
HansKristian-Work__vkd3d-proton__2637 | HansKristian-Work/vkd3d-proton | 2,637 | defect | d4c509664c555a0ce57cb34bde3a33ae7fddb4f3 | d5ece73ca5838b7fa42cb3b05de9d30517d112c6 | Implement tight resource alignment | Should probably be sanity-checked in a bunch of games to avoid regressions, especially those that are known to be weird with resource allcation (Starfield?). | diff --git a/include/vkd3d_d3d12.idl b/include/vkd3d_d3d12.idl
index cbceb9b965..4f4d66c8f5 100644
--- a/include/vkd3d_d3d12.idl
+++ b/include/vkd3d_d3d12.idl
@@ -949,6 +949,22 @@ typedef struct D3D12_FEATURE_DATA_D3D12_OPTIONS21
BOOL ExtendedCommandInfoSupported;
} D3D12_FEATURE_DATA_D3D12_OPTIONS21;
+typedef ... | 8 | 4 | 3 | [{"id": "G0", "claim": "The pull request still needs work to make image create infos consistent (alignment handling is currently all over the place), which may pessimize small image allocation sizes.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":... | null |
HansKristian-Work__vkd3d-proton__2640 | HansKristian-Work/vkd3d-proton | 2,640 | defect | d4c509664c555a0ce57cb34bde3a33ae7fddb4f3 | 76bd355817daf1bce91b82bb10e951621c0c5517 | tests: Add test for dynamically indexed root constants. | FF Tactics relies on this to sort-of work. Of course this is undefined behaviour and should really be fixed in the game, but we cannot fail pipeline compilation.
Not sure how to fix this properly since I don't want to break dxil validation either since games may be relying on this, and this whole thing seems to be r... | diff --git a/tests/d3d12_shaders.c b/tests/d3d12_shaders.c
index 4a1d0db430..0fe28f8e26 100644
--- a/tests/d3d12_shaders.c
+++ b/tests/d3d12_shaders.c
@@ -15005,3 +15005,113 @@ void test_derivative_hoisting_dxil(void)
{
test_derivative_hoisting(true);
}
+
+
+static void test_root_constant_indexing(bool use_dxil)... | 3 | 3 | 2 | [{"id": "G0", "claim": "The ok() call for CreateCommittedResource uses a %#x format specifier without passing hr as an argument.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The dxil branch hard-asserts hr == E_INVALIDARG, but dxil-spirv just allo... | null |
HansKristian-Work__vkd3d-proton__2725 | HansKristian-Work/vkd3d-proton | 2,725 | defect | cc9e5e1e0419bfdfa41386868f5cedaf4a305d28 | f759272dde826e83bac17caed4fffe89fd0fac09 | Implement deferred clears | Draft because the test needs more, well, test cases, and some more real-world testing.
Merges render target clears into render passes, and uses `LOAD_OP_DONT_CARE` for images that were just discarded. The general idea is that we're super conservative around placed/reserved resources due to potential aliasing memes, ... | diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c
index de9b304c28..b2ebb3d7fe 100644
--- a/libs/vkd3d/command.c
+++ b/libs/vkd3d/command.c
@@ -3274,7 +3274,7 @@ static int d3d12_command_list_find_attachment_view(struct d3d12_command_list *li
{
const struct vkd3d_view *dsv = list->dsv.view;
- ... | 5 | 5 | 1 | [{"id": "G0", "claim": "vkd3d_check_subresource_overlap should detect whether two placed resources can possibly alias each other by checking their bound heaps (treating sparse vs placed as the always-aliasing case) instead of assuming any two non-committed resources may alias.", "category": "design", "verdict": "suppor... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.