diff options
author | Chia-I Wu <[email protected]> | 2013-06-14 15:26:07 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2013-06-14 15:36:30 +0800 |
commit | 0d9afaad35e108f9f5f124d31c2cb7e3e052851e (patch) | |
tree | e8e528c3a93bbe5d6d997c34f453666136861dd3 /src/gallium/drivers/ilo/shader | |
parent | 93534873b08aceb0c1c4bd6794c4d3d96907295d (diff) |
ilo: silence a compiler warning
The path should never be hit.
Diffstat (limited to 'src/gallium/drivers/ilo/shader')
-rw-r--r-- | src/gallium/drivers/ilo/shader/ilo_shader_vs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/ilo/shader/ilo_shader_vs.c b/src/gallium/drivers/ilo/shader/ilo_shader_vs.c index 45bc26e0a5d..3563d0b9114 100644 --- a/src/gallium/drivers/ilo/shader/ilo_shader_vs.c +++ b/src/gallium/drivers/ilo/shader/ilo_shader_vs.c @@ -458,6 +458,8 @@ vs_prepare_tgsi_sampling(struct toy_compiler *tc, const struct toy_inst *inst, break; default: assert(!"unhandled sampling opcode"); + if (ret_sampler_index) + *ret_sampler_index = 0; return tsrc_null(); break; } |