diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/kernel/process.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/kernel/thread.cpp | 4 | ||||
| -rw-r--r-- | src/core/hle/kernel/thread.h | 3 | ||||
| -rw-r--r-- | src/core/hle/service/nwm_uds.h | 2 | ||||
| -rw-r--r-- | src/video_core/debug_utils/debug_utils.cpp | 11 | ||||
| -rw-r--r-- | src/video_core/pica.h | 2 |
6 files changed, 17 insertions, 7 deletions
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp index 4c940bcba..1e439db9e 100644 --- a/src/core/hle/kernel/process.cpp +++ b/src/core/hle/kernel/process.cpp | |||
| @@ -87,7 +87,7 @@ void Process::ParseKernelCaps(const u32* kernel_caps, size_t len) { | |||
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | void Process::Run(VAddr entry_point, s32 main_thread_priority, u32 stack_size) { | 89 | void Process::Run(VAddr entry_point, s32 main_thread_priority, u32 stack_size) { |
| 90 | Kernel::SetupMainThread(stack_size, entry_point, main_thread_priority); | 90 | Kernel::SetupMainThread(entry_point, main_thread_priority); |
| 91 | } | 91 | } |
| 92 | 92 | ||
| 93 | Kernel::Process::Process() {} | 93 | Kernel::Process::Process() {} |
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 56ded72cd..ab69a4262 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp | |||
| @@ -460,12 +460,12 @@ SharedPtr<Thread> SetupIdleThread() { | |||
| 460 | return thread; | 460 | return thread; |
| 461 | } | 461 | } |
| 462 | 462 | ||
| 463 | SharedPtr<Thread> SetupMainThread(u32 stack_size, u32 entry_point, s32 priority) { | 463 | SharedPtr<Thread> SetupMainThread(u32 entry_point, s32 priority) { |
| 464 | DEBUG_ASSERT(!GetCurrentThread()); | 464 | DEBUG_ASSERT(!GetCurrentThread()); |
| 465 | 465 | ||
| 466 | // Initialize new "main" thread | 466 | // Initialize new "main" thread |
| 467 | auto thread_res = Thread::Create("main", entry_point, priority, 0, | 467 | auto thread_res = Thread::Create("main", entry_point, priority, 0, |
| 468 | THREADPROCESSORID_0, Memory::HEAP_VADDR_END - stack_size); | 468 | THREADPROCESSORID_0, Memory::HEAP_VADDR_END); |
| 469 | 469 | ||
| 470 | SharedPtr<Thread> thread = thread_res.MoveFrom(); | 470 | SharedPtr<Thread> thread = thread_res.MoveFrom(); |
| 471 | 471 | ||
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h index c5f4043ca..1d4d010fe 100644 --- a/src/core/hle/kernel/thread.h +++ b/src/core/hle/kernel/thread.h | |||
| @@ -183,12 +183,11 @@ private: | |||
| 183 | 183 | ||
| 184 | /** | 184 | /** |
| 185 | * Sets up the primary application thread | 185 | * Sets up the primary application thread |
| 186 | * @param stack_size The size of the thread's stack | ||
| 187 | * @param entry_point The address at which the thread should start execution | 186 | * @param entry_point The address at which the thread should start execution |
| 188 | * @param priority The priority to give the main thread | 187 | * @param priority The priority to give the main thread |
| 189 | * @return A shared pointer to the main thread | 188 | * @return A shared pointer to the main thread |
| 190 | */ | 189 | */ |
| 191 | SharedPtr<Thread> SetupMainThread(u32 stack_size, u32 entry_point, s32 priority); | 190 | SharedPtr<Thread> SetupMainThread(u32 entry_point, s32 priority); |
| 192 | 191 | ||
| 193 | /** | 192 | /** |
| 194 | * Reschedules to the next available thread (call after current thread is suspended) | 193 | * Reschedules to the next available thread (call after current thread is suspended) |
diff --git a/src/core/hle/service/nwm_uds.h b/src/core/hle/service/nwm_uds.h index 9043f5aa7..82abdff28 100644 --- a/src/core/hle/service/nwm_uds.h +++ b/src/core/hle/service/nwm_uds.h | |||
| @@ -18,7 +18,7 @@ public: | |||
| 18 | Interface(); | 18 | Interface(); |
| 19 | 19 | ||
| 20 | std::string GetPortName() const override { | 20 | std::string GetPortName() const override { |
| 21 | return "nwm:UDS"; | 21 | return "nwm::UDS"; |
| 22 | } | 22 | } |
| 23 | }; | 23 | }; |
| 24 | 24 | ||
diff --git a/src/video_core/debug_utils/debug_utils.cpp b/src/video_core/debug_utils/debug_utils.cpp index 2d9d8ab1f..883df48a5 100644 --- a/src/video_core/debug_utils/debug_utils.cpp +++ b/src/video_core/debug_utils/debug_utils.cpp | |||
| @@ -393,6 +393,17 @@ const Math::Vec4<u8> LookupTexture(const u8* source, int x, int y, const Texture | |||
| 393 | } | 393 | } |
| 394 | } | 394 | } |
| 395 | 395 | ||
| 396 | case Regs::TextureFormat::I4: | ||
| 397 | { | ||
| 398 | u32 morton_offset = VideoCore::GetMortonOffset(x, y, 1); | ||
| 399 | const u8* source_ptr = source + morton_offset / 2; | ||
| 400 | |||
| 401 | u8 i = (morton_offset % 2) ? ((*source_ptr & 0xF0) >> 4) : (*source_ptr & 0xF); | ||
| 402 | i = Color::Convert4To8(i); | ||
| 403 | |||
| 404 | return { i, i, i, 255 }; | ||
| 405 | } | ||
| 406 | |||
| 396 | case Regs::TextureFormat::A4: | 407 | case Regs::TextureFormat::A4: |
| 397 | { | 408 | { |
| 398 | u32 morton_offset = VideoCore::GetMortonOffset(x, y, 1); | 409 | u32 morton_offset = VideoCore::GetMortonOffset(x, y, 1); |
diff --git a/src/video_core/pica.h b/src/video_core/pica.h index 5e169ff69..a53429716 100644 --- a/src/video_core/pica.h +++ b/src/video_core/pica.h | |||
| @@ -156,7 +156,7 @@ struct Regs { | |||
| 156 | I8 = 7, | 156 | I8 = 7, |
| 157 | A8 = 8, | 157 | A8 = 8, |
| 158 | IA4 = 9, | 158 | IA4 = 9, |
| 159 | 159 | I4 = 10, | |
| 160 | A4 = 11, | 160 | A4 = 11, |
| 161 | ETC1 = 12, // compressed | 161 | ETC1 = 12, // compressed |
| 162 | ETC1A4 = 13, // compressed | 162 | ETC1A4 = 13, // compressed |