nv30: hmm, no buffer for texture
authorPatrice Mandin <pmandin@caramail.com>
Tue, 18 Mar 2008 12:34:26 +0000 (13:34 +0100)
committerPatrice Mandin <pmandin@caramail.com>
Tue, 18 Mar 2008 12:34:26 +0000 (13:34 +0100)
src/gallium/drivers/nv30/nv30_state_emit.c

index 70b98836f0f0e8e10308cdb41a43cc552b56f3bf..2cb4692e17664b6aefa320c8743c3907dac8c7b7 100644 (file)
@@ -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);