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
3e47ebe2
There was an error fetching the commit references. Please try again later.
Commit
3e47ebe2
authored
2 years ago
by
Wollnashorn
Browse files
Options
Downloads
Patches
Plain Diff
video_core: Only apply AF to 2D (array) image types
parent
c309a1c6
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/image_view_base.cpp
+7
-2
7 additions, 2 deletions
src/video_core/texture_cache/image_view_base.cpp
with
7 additions
and
2 deletions
src/video_core/texture_cache/image_view_base.cpp
+
7
−
2
View file @
3e47ebe2
...
...
@@ -46,6 +46,12 @@ ImageViewBase::ImageViewBase(const ImageInfo& info, const ImageViewInfo& view_in
ImageViewBase
::
ImageViewBase
(
const
NullImageViewParams
&
)
:
image_id
{
NULL_IMAGE_ID
}
{}
bool
ImageViewBase
::
SupportsAnisotropy
()
const
noexcept
{
const
bool
has_mips
=
range
.
extent
.
levels
>
1
;
const
bool
is_2d
=
type
==
ImageViewType
::
e2D
||
type
==
ImageViewType
::
e2DArray
;
if
(
!
has_mips
||
!
is_2d
)
{
return
false
;
}
switch
(
format
)
{
case
PixelFormat
::
R8_UNORM
:
case
PixelFormat
::
R8_SNORM
:
...
...
@@ -87,9 +93,8 @@ bool ImageViewBase::SupportsAnisotropy() const noexcept {
case
PixelFormat
::
D32_FLOAT_S8_UINT
:
return
false
;
default:
b
re
ak
;
re
turn
true
;
}
return
range
.
extent
.
levels
>
1
;
}
}
// namespace VideoCommon
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