summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2020-01-28 22:25:48 -0600
committerJason Ekstrand <[email protected]>2020-01-29 09:43:42 -0600
commitf21b40d0bf3c5662945d8e35f1925a5a208df366 (patch)
treee5290d4ac1e386b273bb50589d5a8b357571bccd /src/intel
parente3f1a08c5641a6b100371a3c17f0b484e1da9b68 (diff)
anv: Rename a variable
The name "desc" shadows another variable. Name it "desc_data" like all of the other descriptor data variables in this file.
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/vulkan/anv_descriptor_set.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_descriptor_set.c b/src/intel/vulkan/anv_descriptor_set.c
index a8e1915e6b9..585ff89306a 100644
--- a/src/intel/vulkan/anv_descriptor_set.c
+++ b/src/intel/vulkan/anv_descriptor_set.c
@@ -1341,11 +1341,11 @@ anv_descriptor_set_write_buffer(struct anv_device *device,
element * anv_descriptor_size(bind_layout);
if (bind_layout->data & ANV_DESCRIPTOR_ADDRESS_RANGE) {
- struct anv_address_range_descriptor desc = {
+ struct anv_address_range_descriptor desc_data = {
.address = anv_address_physical(bind_addr),
.range = bind_range,
};
- memcpy(desc_map, &desc, sizeof(desc));
+ memcpy(desc_map, &desc_data, sizeof(desc_data));
}
}