diff --git a/Core/Dialog/PSPOskDialog.cpp b/Core/Dialog/PSPOskDialog.cpp index 958e0cb240..a475d0ec36 100755 --- a/Core/Dialog/PSPOskDialog.cpp +++ b/Core/Dialog/PSPOskDialog.cpp @@ -766,7 +766,6 @@ void PSPOskDialog::RenderKeyboard() float previewLeftSide = (480.0f - (12.0f * drawLimit)) / 2.0f; float title = (480.0f - (0.5f * drawLimit)) / 2.0f; - PPGeDrawText(oskDesc.c_str(), title , 20, PPGE_ALIGN_CENTER, 0.5f, CalcFadedColor(0xFFFFFFFF)); std::u16string result; diff --git a/Core/HLE/sceMp4.cpp b/Core/HLE/sceMp4.cpp index 99dd7ac4c7..ca2c3d3e11 100644 --- a/Core/HLE/sceMp4.cpp +++ b/Core/HLE/sceMp4.cpp @@ -76,16 +76,12 @@ static u32 sceMp4GetMovieInfo(u32 mp4, u32 unknown2) return 0; } -static u32 sceMp4TrackSampleBufAvailableSize(u32 mp4, u32 unknown2) -{ - ERROR_LOG(ME, "UNIMPL sceMp4TrackSampleBufAvailableSize(mp4 %i, unknown2 %08x)", mp4, unknown2); - return 0; +static u32 sceMp4TrackSampleBufAvailableSize(u32 mp4, u32 trackAddr, u32 writableSamplesAddr, u32 writableBytesAddr) { + return hleLogError(ME, 0, "unimplemented"); } -static u32 sceMp4Delete() -{ - ERROR_LOG(ME, "UNIMPL sceMp4Delete()"); - return 0; +static u32 sceMp4Delete(u32 mp4) { + return hleLogError(ME, 0, "unimplemented"); } static u32 sceMp4AacDecodeInitResource(int unknown) @@ -402,7 +398,7 @@ const HLEFunction sceMp4[] = {0X68651CBC, &WrapU_V, "sceMp4Init", 'x', "" }, {0X9042B257, &WrapU_V, "sceMp4Finish", 'x', "" }, {0XB1221EE7, &WrapU_UUUU, "sceMp4Create", 'x', "xxxx" }, - {0X538C2057, &WrapU_V, "sceMp4Delete", 'x', "" }, + {0X538C2057, &WrapU_U, "sceMp4Delete", 'x', "x" }, {0X113E9E7B, &WrapU_V, "sceMp4GetNumberOfMetaData", 'x', "" }, {0X7443AF1D, &WrapU_UU, "sceMp4GetMovieInfo", 'x', "xx" }, {0X5EB65F26, &WrapU_V, "sceMp4GetNumberOfSpecificTrack", 'x', "" }, @@ -418,7 +414,7 @@ const HLEFunction sceMp4[] = {0XF7C51EC1, &WrapU_V, "sceMp4GetSampleInfo", 'x', "" }, {0X74A1CA3E, &WrapU_V, "sceMp4SearchSyncSampleNum", 'x', "" }, {0XD8250B75, nullptr, "sceMp4PutSampleNum", '?', "" }, - {0X8754ECB8, &WrapU_UU, "sceMp4TrackSampleBufAvailableSize", 'x', "xx" }, + {0X8754ECB8, &WrapU_UUUU, "sceMp4TrackSampleBufAvailableSize", 'x', "xppp" }, {0X31BCD7E0, nullptr, "sceMp4TrackSampleBufPut", '?', "" }, {0X5601A6F0, &WrapU_UUUU, "sceMp4GetAacAu", 'x', "xxxx" }, {0X7663CB5C, &WrapU_UUUUU, "sceMp4AacDecode", 'x', "xxxxx" }, diff --git a/GPU/GLES/DepthBufferGLES.cpp b/GPU/GLES/DepthBufferGLES.cpp index cf399cff87..534ee73d14 100644 --- a/GPU/GLES/DepthBufferGLES.cpp +++ b/GPU/GLES/DepthBufferGLES.cpp @@ -93,8 +93,7 @@ void FramebufferManagerGLES::PackDepthbuffer(VirtualFramebuffer *vfb, int x, int DEBUG_LOG(FRAMEBUF, "Reading depthbuffer to mem at %08x for vfb=%08x", z_address, vfb->fb_address); - // TODO: On desktop, we can just directly download, but for now testing. - const bool useColorPath = true; // gl_extensions.IsGLES; + const bool useColorPath = gl_extensions.IsGLES; bool format16Bit = false; if (useColorPath) { diff --git a/GPU/GLES/DrawEngineGLES.cpp b/GPU/GLES/DrawEngineGLES.cpp index 5587c93b54..ca32d8e508 100644 --- a/GPU/GLES/DrawEngineGLES.cpp +++ b/GPU/GLES/DrawEngineGLES.cpp @@ -426,7 +426,7 @@ void DrawEngineGLES::DoFlush() { // for a very minor speed boost. if (useElements) { size_t esz = sizeof(short) * indexGen.VertexCount(); - vai->ebo = render_->CreateBuffer(GL_ARRAY_BUFFER, esz, GL_STATIC_DRAW); + vai->ebo = render_->CreateBuffer(GL_ELEMENT_ARRAY_BUFFER, esz, GL_STATIC_DRAW); render_->BufferSubdata(vai->ebo, 0, esz, (uint8_t *)decIndex, false); } else { vai->ebo = 0; diff --git a/GPU/GPUCommon.cpp b/GPU/GPUCommon.cpp index b183b2e2fd..3b5d220724 100644 --- a/GPU/GPUCommon.cpp +++ b/GPU/GPUCommon.cpp @@ -2442,7 +2442,7 @@ void GPUCommon::DoState(PointerWrap &p) { DisplayList_v1 oldDL; p.Do(oldDL); // On 32-bit, they're the same, on 64-bit oldDL is bigger. - memcpy(&dls[i], &oldDL, sizeof(DisplayList)); + memcpy(&dls[i], &oldDL, sizeof(DisplayList_v1)); // Fix the other fields. Let's hope context wasn't important, it was a pointer. dls[i].context = 0; dls[i].offsetAddr = oldDL.offsetAddr; diff --git a/cmake/Toolchains/raspberry.armv7.cmake b/cmake/Toolchains/raspberry.armv7.cmake index a72d23df46..b9a8b46a65 100644 --- a/cmake/Toolchains/raspberry.armv7.cmake +++ b/cmake/Toolchains/raspberry.armv7.cmake @@ -22,7 +22,7 @@ if(NOT PPSSPP_PI_MODEL4) endif() if(PPSSPP_PI_MODEL4) - set(ARCH_FLAGS "-march=armv7-a -mcpu=cortex-a72 -mtune=cortex-a72 -mfpu=neon-vfpv4 -mfloat-abi=hard") + set(ARCH_FLAGS "-march=armv7-a -mtune=cortex-a72 -mfpu=neon-vfpv4 -mfloat-abi=hard") else() set(ARCH_FLAGS "-mcpu=cortex-a7 -mfpu=neon -mfloat-abi=hard") endif() diff --git a/ext/native/thin3d/GLQueueRunner.cpp b/ext/native/thin3d/GLQueueRunner.cpp index 2ea228fcd3..20c5bf7800 100644 --- a/ext/native/thin3d/GLQueueRunner.cpp +++ b/ext/native/thin3d/GLQueueRunner.cpp @@ -161,8 +161,8 @@ void GLQueueRunner::RunInitSteps(const std::vector &steps, bool ski case GLRInitStepType::BUFFER_SUBDATA: { GLRBuffer *buffer = step.buffer_subdata.buffer; - glBindBuffer(GL_ARRAY_BUFFER, buffer->buffer_); - glBufferSubData(GL_ARRAY_BUFFER, step.buffer_subdata.offset, step.buffer_subdata.size, step.buffer_subdata.data); + glBindBuffer(buffer->target_, buffer->buffer_); + glBufferSubData(buffer->target_, step.buffer_subdata.offset, step.buffer_subdata.size, step.buffer_subdata.data); if (step.buffer_subdata.deleteData) delete[] step.buffer_subdata.data; CHECK_GL_ERROR_IF_DEBUG();