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
34c448ba
There was an error fetching the commit references. Please try again later.
Commit
34c448ba
authored
2 years ago
by
Liam
Browse files
Options
Downloads
Patches
Plain Diff
Revert "texture_cache: Fix incorrect logic for AccelerateDMA"
This reverts commit
1fc47361
.
parent
146769f4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/video_core/texture_cache/texture_cache.h
+8
-4
8 additions, 4 deletions
src/video_core/texture_cache/texture_cache.h
with
8 additions
and
4 deletions
src/video_core/texture_cache/texture_cache.h
+
8
−
4
View file @
34c448ba
...
...
@@ -865,11 +865,15 @@ void TextureCache<P>::PopAsyncFlushes() {
template
<
class
P
>
ImageId
TextureCache
<
P
>::
DmaImageId
(
const
Tegra
::
DMA
::
ImageOperand
&
operand
,
bool
is_upload
)
{
const
ImageInfo
dst_info
(
operand
);
const
ImageId
image_id
=
FindDMAImage
(
dst_info
,
operand
.
address
);
if
(
!
image_id
)
{
const
ImageId
dst_id
=
FindDMAImage
(
dst_info
,
operand
.
address
);
if
(
!
dst_id
)
{
return
NULL_IMAGE_ID
;
}
auto
&
image
=
slot_images
[
dst_id
];
if
(
False
(
image
.
flags
&
ImageFlagBits
::
GpuModified
))
{
// No need to waste time on an image that's synced with guest
return
NULL_IMAGE_ID
;
}
auto
&
image
=
slot_images
[
image_id
];
if
(
image
.
info
.
type
==
ImageType
::
e3D
)
{
// Don't accelerate 3D images.
return
NULL_IMAGE_ID
;
...
...
@@ -883,7 +887,7 @@ ImageId TextureCache<P>::DmaImageId(const Tegra::DMA::ImageOperand& operand, boo
if
(
!
base
)
{
return
NULL_IMAGE_ID
;
}
return
image
_id
;
return
dst
_id
;
}
template
<
class
P
>
...
...
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