summaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_surface.h
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2018-12-17 09:59:49 +0100
committerBas Nieuwenhuizen <[email protected]>2018-12-20 15:07:20 +0100
commit9f0bfbed11f5fc4f3b899b1eb90570dbeeef45c0 (patch)
tree6c85668145a1e1e3d21d9db763ce18aaa7fa9e88 /src/amd/common/ac_surface.h
parent5c7935f8fc7dc0fd6e2495da36f66c51f966e489 (diff)
radv: Work around non-renderable 128bpp compressed 3d textures on GFX9.
Exactly what title says, the new addrlib does not allow the above with certain dimensions that the CTS seems to hit. Work around it by not allowing the app to render to it via compat with other 128bpp formats and do not render to it ourselves during copies. Fixes: 776b9113656 "amd/addrlib: update Mesa's copy of addrlib" Reviewed-by: Nicolai Hähnle <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/amd/common/ac_surface.h')
-rw-r--r--src/amd/common/ac_surface.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amd/common/ac_surface.h b/src/amd/common/ac_surface.h
index 8ba964e64ec..7ae166c70a3 100644
--- a/src/amd/common/ac_surface.h
+++ b/src/amd/common/ac_surface.h
@@ -68,6 +68,7 @@ enum radeon_micro_mode {
#define RADEON_SURF_IMPORTED (1 << 24)
#define RADEON_SURF_OPTIMIZE_FOR_SPACE (1 << 25)
#define RADEON_SURF_SHAREABLE (1 << 26)
+#define RADEON_SURF_NO_RENDER_TARGET (1 << 27)
struct legacy_surf_level {
uint64_t offset;