projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4107590
)
radv: Add asserts that buffer descriptors are created with valid buffer formats.
author
Bas Nieuwenhuizen
<bas@basnieuwenhuizen.nl>
Sat, 15 Jun 2019 14:10:22 +0000
(16:10 +0200)
committer
Bas Nieuwenhuizen
<bas@basnieuwenhuizen.nl>
Mon, 17 Jun 2019 10:56:50 +0000
(10:56 +0000)
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.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 909145e1e756b20d17241b4615b43de945382718..a74884f411bb79c5456df1b060e268be29d36858 100644
(file)
--- a/
src/amd/vulkan/radv_image.c
+++ b/
src/amd/vulkan/radv_image.c
@@
-379,6
+379,9
@@
radv_make_buffer_descriptor(struct radv_device *device,
num_format = radv_translate_buffer_numformat(desc, first_non_void);
data_format = radv_translate_buffer_dataformat(desc, first_non_void);
+ assert(data_format != V_008F0C_BUF_DATA_FORMAT_INVALID);
+ assert(num_format != ~0);
+
va += offset;
state[0] = va;
state[1] = S_008F04_BASE_ADDRESS_HI(va >> 32) |