summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-06-13 05:54:08 +1000
committerDave Airlie <[email protected]>2017-07-18 16:17:28 +1000
commit687d241559abfc7fee3b24648481224310f93e52 (patch)
tree9387e843b763d33e7924387af3c35641a5c5fda2 /src/amd
parent795848c232c6646fc6756de502c495135cdbd21c (diff)
radv: don't shadow meta_va.
Coverity warned about dead code below, as meta_va was being shadowed. Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/vulkan/radv_image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c
index 9e54b95ac3f..e6ad31ebaa1 100644
--- a/src/amd/vulkan/radv_image.c
+++ b/src/amd/vulkan/radv_image.c
@@ -223,7 +223,7 @@ si_set_mutable_tex_desc_fields(struct radv_device *device,
state[6] &= C_008F28_COMPRESSION_EN;
state[7] = 0;
if (image->surface.dcc_size && first_level < image->surface.num_dcc_levels) {
- uint64_t meta_va = gpu_address + image->dcc_offset;
+ meta_va = gpu_address + image->dcc_offset;
if (chip_class <= VI)
meta_va += base_level_info->dcc_offset;
state[6] |= S_008F28_COMPRESSION_EN(1);