diff options
author | Marek Olšák <[email protected]> | 2017-07-28 23:08:10 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-08-04 02:10:04 +0200 |
commit | 59144d4bf5e49cb4085ae723b7e77715922abd61 (patch) | |
tree | 8fea336ce8cb5bd3096d4d02f838089ebe16df93 /src/amd/common/ac_surface.h | |
parent | 90594002474fa2118555d1a08d67c1fee8f2c24c (diff) |
ac/surface: increment surf_index only when tile swizzle is allowed
Reviewed-by: Dave Airlie <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/amd/common/ac_surface.h')
-rw-r--r-- | src/amd/common/ac_surface.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/common/ac_surface.h b/src/amd/common/ac_surface.h index 01a71f32b2f..b2620f95055 100644 --- a/src/amd/common/ac_surface.h +++ b/src/amd/common/ac_surface.h @@ -209,10 +209,10 @@ struct ac_surf_info { uint32_t width; uint32_t height; uint32_t depth; - uint32_t surf_index; uint8_t samples; uint8_t levels; uint16_t array_size; + uint32_t *surf_index; /* Set a monotonic counter for tile swizzling. */ }; struct ac_surf_config { |