diff options
author | Grazvydas Ignotas <[email protected]> | 2017-04-02 20:22:11 +0300 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-04-03 00:46:35 +0200 |
commit | 8e42038d8738ad6509b12ac154508230e3c519f0 (patch) | |
tree | eadfcf98de33cc2c1cbf1715c8248ca5d1e1eacd /src/gallium/drivers/radeonsi | |
parent | dc6b3c031ee295aefbc7265e2894486454061ffe (diff) |
radeonsi: use unreachable to fix a warning
si_state.c: In function ‘si_make_texture_descriptor’:
si_state.c:3240:25: warning: ‘num_format’ may be used uninitialized
si_state.c:3240:12: warning: ‘data_format’ may be used uninitialized
Signed-off-by: Grazvydas Ignotas <[email protected]>
Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 35fadec2a1e..4a6b61587fb 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -3254,7 +3254,7 @@ si_make_texture_descriptor(struct si_screen *screen, num_format = V_008F14_IMG_FMASK_32_8_8; break; default: - assert(0); + unreachable("invalid nr_samples"); } } else { switch (res->nr_samples) { @@ -3268,7 +3268,7 @@ si_make_texture_descriptor(struct si_screen *screen, data_format = V_008F14_IMG_DATA_FORMAT_FMASK32_S8_F8; break; default: - assert(0); + unreachable("invalid nr_samples"); } num_format = V_008F14_IMG_NUM_FORMAT_UINT; } |