artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f759fef
)
drm/amdgpu: check for LINEAR_ALIGNED correctly in check_tiling_flags_gfx6
author
jsg
<jsg@openbsd.org>
Thu, 12 Sep 2024 23:38:36 +0000
(23:38 +0000)
committer
jsg
<jsg@openbsd.org>
Thu, 12 Sep 2024 23:38:36 +0000
(23:38 +0000)
From Marek Olsak
9a41def4c48f92d386fdadc332a91c379257aa6a
in linux-6.6.y/6.6.51
11317d2963fa79767cd7c6231a00a9d77f2e0f54
in mainline linux
sys/dev/pci/drm/amd/amdgpu/amdgpu_display.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/amd/amdgpu/amdgpu_display.c
b/sys/dev/pci/drm/amd/amdgpu/amdgpu_display.c
index
578aeba
..
82ad2b0
100644
(file)
--- a/
sys/dev/pci/drm/amd/amdgpu/amdgpu_display.c
+++ b/
sys/dev/pci/drm/amd/amdgpu/amdgpu_display.c
@@
-909,8
+909,7
@@
static int check_tiling_flags_gfx6(struct amdgpu_framebuffer *afb)
{
u64 micro_tile_mode;
- /* Zero swizzle mode means linear */
- if (AMDGPU_TILING_GET(afb->tiling_flags, SWIZZLE_MODE) == 0)
+ if (AMDGPU_TILING_GET(afb->tiling_flags, ARRAY_MODE) == 1) /* LINEAR_ALIGNED */
return 0;
micro_tile_mode = AMDGPU_TILING_GET(afb->tiling_flags, MICRO_TILE_MODE);