projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3f1a08
)
anv: Rename a variable
author
Jason Ekstrand
<jason@jlekstrand.net>
Wed, 29 Jan 2020 04:25:48 +0000
(22:25 -0600)
committer
Jason Ekstrand
<jason@jlekstrand.net>
Wed, 29 Jan 2020 15:43:42 +0000
(09:43 -0600)
The name "desc" shadows another variable. Name it "desc_data" like all
of the other descriptor data variables in this file.
src/intel/vulkan/anv_descriptor_set.c
patch
|
blob
|
history
diff --git
a/src/intel/vulkan/anv_descriptor_set.c
b/src/intel/vulkan/anv_descriptor_set.c
index
a8e1915
..
585ff89
100644
(file)
--- 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
));
}
}