ilo: silence a compiler warning
authorChia-I Wu <olvaffe@gmail.com>
Fri, 14 Jun 2013 07:26:07 +0000 (15:26 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Fri, 14 Jun 2013 07:36:30 +0000 (15:36 +0800)
The path should never be hit.

src/gallium/drivers/ilo/shader/ilo_shader_vs.c

index 45bc26e0a5d90c659ce1fa6f78ce58d7a4758940..3563d0b9114502bcbc17060b02954f1a5d100e56 100644 (file)
@@ -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;
    }