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
83ec2091
There was an error fetching the commit references. Please try again later.
Commit
83ec2091
authored
5 years ago
by
Fernando Sahmkow
Committed by
FernandoS27
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Buffer Cache: Adress Feedback.
parent
6ce2c850
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/buffer_cache/buffer_block.h
+3
-4
3 additions, 4 deletions
src/video_core/buffer_cache/buffer_block.h
src/video_core/renderer_opengl/gl_buffer_cache.h
+3
-3
3 additions, 3 deletions
src/video_core/renderer_opengl/gl_buffer_cache.h
with
6 additions
and
7 deletions
src/video_core/buffer_cache/buffer_block.h
+
3
−
4
View file @
83ec2091
...
...
@@ -19,8 +19,8 @@ public:
return
(
cache_addr
<
end
)
&&
(
cache_addr_end
>
start
);
}
bool
IsInside
(
const
CacheAddr
other_start
,
const
CacheAddr
other_end
)
{
return
(
cache_addr
<=
other_start
&&
other_end
<=
cache_addr_end
)
;
bool
IsInside
(
const
CacheAddr
other_start
,
const
CacheAddr
other_end
)
const
{
return
cache_addr
<=
other_start
&&
other_end
<=
cache_addr_end
;
}
u8
*
GetWritableHostPtr
()
const
{
...
...
@@ -61,8 +61,7 @@ public:
}
protected
:
explicit
BufferBlock
(
CacheAddr
cache_addr
,
const
std
::
size_t
size
)
:
size
{
size
}
{
explicit
BufferBlock
(
CacheAddr
cache_addr
,
const
std
::
size_t
size
)
:
size
{
size
}
{
SetCacheAddr
(
cache_addr
);
}
~
BufferBlock
()
=
default
;
...
...
This diff is collapsed.
Click to expand it.
src/video_core/renderer_opengl/gl_buffer_cache.h
+
3
−
3
View file @
83ec2091
...
...
@@ -54,13 +54,13 @@ protected:
const
GLuint
*
ToHandle
(
const
Buffer
&
buffer
)
override
;
void
UploadBlockData
(
const
Buffer
&
buffer
,
std
::
size_t
offset
,
std
::
size_t
size
,
const
u8
*
data
)
override
;
const
u8
*
data
)
override
;
void
DownloadBlockData
(
const
Buffer
&
buffer
,
std
::
size_t
offset
,
std
::
size_t
size
,
u8
*
data
)
override
;
u8
*
data
)
override
;
void
CopyBlock
(
const
Buffer
&
src
,
const
Buffer
&
dst
,
std
::
size_t
src_offset
,
std
::
size_t
dst_offset
,
std
::
size_t
size
)
override
;
std
::
size_t
dst_offset
,
std
::
size_t
size
)
override
;
};
}
// namespace OpenGL
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