Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Suyu
Commits
1142ccba
There was an error fetching the commit references. Please try again later.
Commit
1142ccba
authored
10 years ago
by
bunnei
Browse files
Options
Downloads
Patches
Plain Diff
fixed renderer to use correct framebuffer location
parent
a6c92511
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/video_core/renderer_opengl/renderer_opengl.cpp
+5
-6
5 additions, 6 deletions
src/video_core/renderer_opengl/renderer_opengl.cpp
src/video_core/renderer_opengl/renderer_opengl.h
+2
-2
2 additions, 2 deletions
src/video_core/renderer_opengl/renderer_opengl.h
with
7 additions
and
8 deletions
src/video_core/renderer_opengl/renderer_opengl.cpp
+
5
−
6
View file @
1142ccba
...
...
@@ -53,12 +53,11 @@ void RendererOpenGL::SwapBuffers() {
/**
* Helper function to flip framebuffer from left-to-right to top-to-bottom
* @param
addr Address of
framebuffer in RAM
* @param
in Pointer to input raw
framebuffer in
V/
RAM
* @param out Pointer to output buffer with flipped framebuffer
* @todo Early on hack... I'd like to find a more efficient way of doing this /bunnei
*/
void
RendererOpenGL
::
FlipFramebuffer
(
u32
addr
,
u8
*
out
)
{
u8
*
in
=
Memory
::
GetPointer
(
addr
);
void
RendererOpenGL
::
FlipFramebuffer
(
const
u8
*
in
,
u8
*
out
)
{
for
(
int
y
=
0
;
y
<
VideoCore
::
kScreenTopHeight
;
y
++
)
{
for
(
int
x
=
0
;
x
<
VideoCore
::
kScreenTopWidth
;
x
++
)
{
int
in_coord
=
(
VideoCore
::
kScreenTopHeight
*
3
*
x
)
+
(
VideoCore
::
kScreenTopHeight
*
3
)
...
...
@@ -77,10 +76,10 @@ void RendererOpenGL::FlipFramebuffer(u32 addr, u8* out) {
* @param src_rect Source rectangle in XFB to copy
* @param dst_rect Destination rectangle in output framebuffer to copy to
*/
void
RendererOpenGL
::
RenderXFB
(
const
Rect
&
src_rect
,
const
Rect
&
dst_rect
)
{
void
RendererOpenGL
::
RenderXFB
(
const
Rect
&
src_rect
,
const
Rect
&
dst_rect
)
{
FlipFramebuffer
(
LCD
::
TOP_RIGHT_FRAME1
,
m_xfb_top_flipped
);
FlipFramebuffer
(
LCD
::
SUB_FRAME1
,
m_xfb_bottom_flipped
);
FlipFramebuffer
(
LCD
::
GetFramebufferPointer
(
LCD
::
g_regs
.
framebuffer_top_left_1
),
m_xfb_top_flipped
);
FlipFramebuffer
(
LCD
::
GetFramebufferPointer
(
LCD
::
g_regs
.
framebuffer_sub_left_1
),
m_xfb_bottom_flipped
);
// Blit the top framebuffer
// ------------------------
...
...
This diff is collapsed.
Click to expand it.
src/video_core/renderer_opengl/renderer_opengl.h
+
2
−
2
View file @
1142ccba
...
...
@@ -55,11 +55,11 @@ private:
/**
* Helper function to flip framebuffer from left-to-right to top-to-bottom
* @param
addr Address of
framebuffer in RAM
* @param
in Pointer to input raw
framebuffer in
V/
RAM
* @param out Pointer to output buffer with flipped framebuffer
* @todo Early on hack... I'd like to find a more efficient way of doing this /bunnei
*/
void
RendererOpenGL
::
FlipFramebuffer
(
u32
addr
,
u8
*
out
);
void
RendererOpenGL
::
FlipFramebuffer
(
const
u8
*
in
,
u8
*
out
);
EmuWindow
*
m_render_window
;
///< Handle to render window
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment