projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ab3df4
)
gallivm: Display message instead of crashing when sampler generator was not supplied...
author
José Fonseca
<jfonseca@vmware.com>
Mon, 3 May 2010 12:16:09 +0000
(13:16 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Mon, 3 May 2010 12:18:53 +0000
(13:18 +0100)
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
index faf491fc3c72c8b31a1234b32838c3b44e8929aa..d9983862375d2365e69e5bd6efa951beee6496d8 100644
(file)
--- a/
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
+++ b/
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
@@
-606,6
+606,14
@@
emit_tex( struct lp_build_tgsi_soa_context *bld,
unsigned num_coords;
unsigned i;
+ if (!bld->sampler) {
+ _debug_printf("warning: found texture instruction but no sampler generator supplied\n");
+ for (i = 0; i < 4; i++) {
+ texel[i] = bld->base.undef;
+ }
+ return;
+ }
+
switch (inst->Texture.Texture) {
case TGSI_TEXTURE_1D:
num_coords = 1;