Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
mesa
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Bas Nieuwenhuizen
mesa
Commits
41883c69
Commit
41883c69
authored
Nov 13, 2020
by
Bas Nieuwenhuizen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
radv: Do the sample check for tiling earlier.
The LINEAR optimization is not allowed for MSAA images.
parent
dad6b625
Pipeline
#228240
waiting for manual action with stages
in 22 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/amd/vulkan/radv_image.c
src/amd/vulkan/radv_image.c
+4
-4
No files found.
src/amd/vulkan/radv_image.c
View file @
41883c69
...
...
@@ -47,6 +47,10 @@ radv_choose_tiling(struct radv_device *device,
return
RADEON_SURF_MODE_LINEAR_ALIGNED
;
}
/* MSAA resources must be 2D tiled. */
if
(
pCreateInfo
->
samples
>
1
)
return
RADEON_SURF_MODE_2D
;
if
(
!
vk_format_is_compressed
(
format
)
&&
!
vk_format_is_depth_or_stencil
(
format
)
&&
device
->
physical_device
->
rad_info
.
chip_class
<=
GFX8
)
{
...
...
@@ -59,10 +63,6 @@ radv_choose_tiling(struct radv_device *device,
return
RADEON_SURF_MODE_LINEAR_ALIGNED
;
}
/* MSAA resources must be 2D tiled. */
if
(
pCreateInfo
->
samples
>
1
)
return
RADEON_SURF_MODE_2D
;
return
RADEON_SURF_MODE_2D
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment