nv30: activate fp texture units when needed, to get texturing
authorPatrice Mandin <pmandin@caramail.com>
Sat, 30 Aug 2008 20:30:03 +0000 (22:30 +0200)
committerPatrice Mandin <pmandin@caramail.com>
Sat, 30 Aug 2008 20:30:03 +0000 (22:30 +0200)
src/gallium/drivers/nv30/nv30_state_emit.c

index 40fed621b24037062bc1b0858eb0f73af9bea877..9c96085408efa08b7fde435970c4cfd8d42f7df1 100644 (file)
@@ -71,6 +71,10 @@ nv30_state_emit(struct nv30_context *nv30)
 
        state->dirty = 0;
 
+       /* FIXME/TODO: Try to find a way to reemit only when changed */
+       BEGIN_RING(rankine, NV34TCL_TX_UNITS_ENABLE, 1);
+       OUT_RING(state->fp_samplers);
+
        so_emit_reloc_markers(nv30->nvws, state->hw[NV30_STATE_FB]);
        for (i = 0, samplers = state->fp_samplers; i < 16 && samplers; i++) {
                if (!(samplers & (1 << i)))