projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9353487
)
ilo: silence a compiler warning
author
Chia-I Wu
<olvaffe@gmail.com>
Fri, 14 Jun 2013 07:26:07 +0000
(15:26 +0800)
committer
Chia-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
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/ilo/shader/ilo_shader_vs.c
b/src/gallium/drivers/ilo/shader/ilo_shader_vs.c
index 45bc26e0a5d90c659ce1fa6f78ce58d7a4758940..3563d0b9114502bcbc17060b02954f1a5d100e56 100644
(file)
--- 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;
}