summaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_surface.h
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2019-06-24 12:18:01 +0200
committerSamuel Pitoiset <[email protected]>2019-06-25 16:36:25 +0200
commit476b907a3b40688e2ef2383804f9e1c91ec76a36 (patch)
tree8f4c54f332ab514bee494d30928ad26da665377e /src/amd/common/ac_surface.h
parenta5ba386b3ff349f3fd13379804b260f33c58d983 (diff)
radv: clear FMASK layers instead of the whole buffer on GFX8
This reduces the size of fill operations needed to clear FMASK for layered color textures. GFX9 unsupported for now. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[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 49f68f4fc92..aa93e917270 100644
--- a/src/amd/common/ac_surface.h
+++ b/src/amd/common/ac_surface.h
@@ -86,6 +86,7 @@ struct legacy_surf_fmask {
uint8_t tiling_index; /* max 31 */
uint8_t bankh; /* max 8 */
uint16_t pitch_in_pixels;
+ uint64_t slice_size;
};
struct legacy_surf_layout {