ilo: silence a compiler warning

The path should never be hit.
This commit is contained in:
Chia-I Wu 2013-06-14 15:26:07 +08:00
parent 93534873b0
commit 0d9afaad35
1 changed files with 2 additions and 0 deletions

View 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;
}