aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_private.h
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-08-04 06:54:15 +0100
committerDave Airlie <[email protected]>2017-08-07 00:08:43 +0100
commit1e696b962b7207bb87cf9fc91e2a9de9a3becfba (patch)
tree1c142ad9ce85b5ccdd415d59f0a4774795360222 /src/amd/vulkan/radv_private.h
parent3f389f75b6e9b55467aca681af09b83998ee0e46 (diff)
radv: add separate fmask tile swizzle counter.
This mirrors what Marek has done for radeonsi, and uses a separate counter to handle the fmask surface for MSAA MRTs. Reviewed-by: Bas Nieuwenhuizen <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_private.h')
-rw-r--r--src/amd/vulkan/radv_private.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h
index 1f0e0252bf1..6c49395d0ae 100644
--- a/src/amd/vulkan/radv_private.h
+++ b/src/amd/vulkan/radv_private.h
@@ -547,8 +547,12 @@ struct radv_device {
/* Backup in-memory cache to be used if the app doesn't provide one */
struct radv_pipeline_cache * mem_cache;
+ /*
+ * use different counters so MSAA MRTs get consecutive surface indices,
+ * even if MASK is allocated in between.
+ */
uint32_t image_mrt_offset_counter;
-
+ uint32_t fmask_mrt_offset_counter;
struct list_head shader_slabs;
mtx_t shader_slab_mutex;
};
@@ -1193,6 +1197,7 @@ struct radv_fmask_info {
unsigned bank_height;
unsigned slice_tile_max;
unsigned tile_mode_index;
+ unsigned tile_swizzle;
};
struct radv_cmask_info {