projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8efaffa
)
ac/surface: 3D and cube surfaces are never displayable
author
Nicolai Hähnle
<nicolai.haehnle@amd.com>
Thu, 29 Nov 2018 17:34:01 +0000
(18:34 +0100)
committer
Nicolai Hähnle
<nicolai.haehnle@amd.com>
Wed, 19 Dec 2018 11:01:22 +0000
(12:01 +0100)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/amd/common/ac_surface.c
patch
|
blob
|
history
diff --git
a/src/amd/common/ac_surface.c
b/src/amd/common/ac_surface.c
index
d8d927e
..
aeba5e1
100644
(file)
--- a/
src/amd/common/ac_surface.c
+++ b/
src/amd/common/ac_surface.c
@@
-1516,10
+1516,12
@@
static int gfx9_compute_surface(ADDR_HANDLE addrlib,
/* Query whether the surface is displayable. */
bool displayable = false;
- r = Addr2IsValidDisplaySwizzleMode(addrlib, surf->u.gfx9.surf.swizzle_mode,
+ if (!config->is_3d && !config->is_cube) {
+ r = Addr2IsValidDisplaySwizzleMode(addrlib, surf->u.gfx9.surf.swizzle_mode,
surf->bpe * 8, &displayable);
- if (r)
- return r;
+ if (r)
+ return r;
+ }
surf->is_displayable = displayable;
switch (surf->u.gfx9.surf.swizzle_mode) {