projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
795848c
)
radv: don't shadow meta_va.
author
Dave Airlie
<airlied@redhat.com>
Mon, 12 Jun 2017 19:54:08 +0000
(
05:54
+1000)
committer
Dave Airlie
<airlied@redhat.com>
Tue, 18 Jul 2017 06:17:28 +0000
(16:17 +1000)
Coverity warned about dead code below, as meta_va was being shadowed.
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_image.c
patch
|
blob
|
history
diff --git
a/src/amd/vulkan/radv_image.c
b/src/amd/vulkan/radv_image.c
index 9e54b95ac3f77a065eb7fe3bb52331e47b3b3892..e6ad31ebaa15dbc2c0b8b4fbcb822a14c8113f4e 100644
(file)
--- 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);