aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>2019-07-18 22:00:03 (GMT)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>2019-07-20 23:39:08 (GMT)
commit451f030c068ccfa87aaab624d8e392875fd46c08 (patch)
treeb4901e8723e9b87699aba12a2736275ec9c10c2d
parentd31d25f634abe787552eba8526db9f901a257d9c (diff)
downloadexternal_mesa3d-451f030c068ccfa87aaab624d8e392875fd46c08.zip
external_mesa3d-451f030c068ccfa87aaab624d8e392875fd46c08.tar.gz
external_mesa3d-451f030c068ccfa87aaab624d8e392875fd46c08.tar.bz2
radv: Fix uninitialized warning.
For es_vgpr_comp_cnt. Fixes: 795adbbadd4 "radv/gfx10: Add pipeline state support for tess." Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
-rw-r--r--src/amd/vulkan/radv_shader.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c
index 3b00bf8..4262dae 100644
--- a/src/amd/vulkan/radv_shader.c
+++ b/src/amd/vulkan/radv_shader.c
@@ -810,7 +810,8 @@ static void radv_postprocess_config(const struct radv_physical_device *pdevice,
} else if (es_stage == MESA_SHADER_TESS_EVAL) {
bool enable_prim_id = info->tes.export_prim_id || info->info.uses_prim_id;
es_vgpr_comp_cnt = enable_prim_id ? 3 : 2;
- }
+ } else
+ unreachable("Unexpected ES shader stage");
bool tes_triangles = stage == MESA_SHADER_TESS_EVAL &&
info->tes.primitive_mode >= 4; /* GL_TRIANGLES */