fix crash in volk
This commit is contained in:
@@ -16,7 +16,6 @@ if (HAS_SSE4_1)
|
||||
add_compile_options(-msse3 -msse4.1)
|
||||
endif ()
|
||||
|
||||
add_compile_definitions(SDL_MAIN_HANDLED)
|
||||
if(${CMAKE_BUILD_TYPE} MATCHES Debug)
|
||||
add_compile_definitions(VULKAN_DEBUG)
|
||||
#add_compile_options(-fsanitize=address -fsanitize=undefined)
|
||||
|
||||
@@ -13,9 +13,11 @@ struct AudioDevice {
|
||||
void PushSample(float, float, float, float);
|
||||
void AdjustSampleRate(int);
|
||||
void LockMutex() {
|
||||
if(audioStreamMutex)
|
||||
SDL_LockMutex(audioStreamMutex);
|
||||
}
|
||||
void UnlockMutex() {
|
||||
if (audioStreamMutex)
|
||||
SDL_UnlockMutex(audioStreamMutex);
|
||||
}
|
||||
|
||||
|
||||
@@ -468,7 +468,7 @@ void PI::Write(u32 addr, u32 val) {
|
||||
|
||||
for(u32 i = 0; i < len; i++) {
|
||||
u32 addr = BYTE_ADDRESS(dramAddrInternal + i) & RDRAM_DSIZE;
|
||||
if (addr < mem.mmio.rdp.rdram.size()) {
|
||||
if (addr < RDRAM_SIZE) {
|
||||
mem.mmio.rdp.rdram[addr] = BusRead<u8, true>(cartAddrInternal + i);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,6 @@ find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets)
|
||||
find_package(SDL2 CONFIG REQUIRED)
|
||||
|
||||
include_directories(
|
||||
${SDL2_INCLUDE_DIRS}
|
||||
.
|
||||
../
|
||||
../utils
|
||||
@@ -33,6 +32,7 @@ include_directories(
|
||||
../../external/imgui/imgui
|
||||
../../external/imgui/imgui/backends
|
||||
../../external/unarr
|
||||
${SDL2_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
option(RAPIDJSON_BUILD_DOC "Build rapidjson documentation." OFF)
|
||||
@@ -73,6 +73,7 @@ add_executable(kaizen-qt
|
||||
InputSettings.cpp)
|
||||
|
||||
target_link_libraries(kaizen-qt PUBLIC Qt6::Core Qt6::Gui Qt6::Widgets fmt mio nlohmann_json nfd parallel-rdp backend)
|
||||
target_compile_definitions(kaizen-qt PUBLIC SDL_MAIN_HANDLED)
|
||||
|
||||
file(COPY ../../resources/ DESTINATION ${PROJECT_BINARY_DIR}/resources/)
|
||||
file(REMOVE
|
||||
|
||||
Reference in New Issue
Block a user