projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e417ab2
)
radv: Replace an assert with unreachable.
author
Bas Nieuwenhuizen
<bas@basnieuwenhuizen.nl>
Wed, 17 Jan 2018 22:23:02 +0000
(23:23 +0100)
committer
Bas Nieuwenhuizen
<bas@basnieuwenhuizen.nl>
Thu, 18 Jan 2018 23:38:45 +0000
(
00:38
+0100)
Otherwise we get uninitialized variable warnings for es_vgpr_comp_cnt.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_shader.c
patch
|
blob
|
history
diff --git
a/src/amd/vulkan/radv_shader.c
b/src/amd/vulkan/radv_shader.c
index 9819a522d7125e33368011ca985bb024e3a3eff8..3bcaac168adf09f52873af10880d15d79b7f8867 100644
(file)
--- a/
src/amd/vulkan/radv_shader.c
+++ b/
src/amd/vulkan/radv_shader.c
@@
-424,7
+424,7
@@
radv_fill_shader_variant(struct radv_device *device,
} else if (es_type == MESA_SHADER_TESS_EVAL) {
es_vgpr_comp_cnt = 3;
} else {
-
assert(!
"invalid shader ES type");
+
unreachable(
"invalid shader ES type");
}
/* If offsets 4, 5 are used, GS_VGPR_COMP_CNT is ignored and