diff options
author | Patrice Mandin <[email protected]> | 2008-03-18 13:34:26 +0100 |
---|---|---|
committer | Patrice Mandin <[email protected]> | 2008-03-18 13:34:26 +0100 |
commit | e4b5008de46659f13fca7dcd1b587504e9d4484c (patch) | |
tree | 4d561698d7f7183baa4f2302b5c6b9422c1214d4 | |
parent | a514aeb77899816d82c5b31f3bf2206d82d68893 (diff) |
nv30: hmm, no buffer for texture
-rw-r--r-- | src/gallium/drivers/nv30/nv30_state_emit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv30/nv30_state_emit.c b/src/gallium/drivers/nv30/nv30_state_emit.c index 70b98836f0f..2cb4692e176 100644 --- a/src/gallium/drivers/nv30/nv30_state_emit.c +++ b/src/gallium/drivers/nv30/nv30_state_emit.c @@ -64,6 +64,8 @@ nv30_emit_hw_state(struct nv30_context *nv30) for (i = 0; i < 16; i++) { if (!(nv30->fp_samplers & (1 << i))) continue; + if (!nv30->tex[i].buffer) + continue; BEGIN_RING(rankine, NV34TCL_TX_OFFSET(i), 2); OUT_RELOCl(nv30->tex[i].buffer, 0, NOUVEAU_BO_VRAM | NOUVEAU_BO_GART | NOUVEAU_BO_RD); |