aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv30
diff options
context:
space:
mode:
authorPatrice Mandin <[email protected]>2008-08-30 22:30:03 +0200
committerPatrice Mandin <[email protected]>2008-08-30 22:30:03 +0200
commit248831e741602450fa957d7f63b1ff1e1395c412 (patch)
treec4071a946afc3e0c0e50275fa77485e8f0901f3f /src/gallium/drivers/nv30
parent4d9d192672508eaa9b2a70f84e933f11108bf09f (diff)
nv30: activate fp texture units when needed, to get texturing
Diffstat (limited to 'src/gallium/drivers/nv30')
-rw-r--r--src/gallium/drivers/nv30/nv30_state_emit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv30/nv30_state_emit.c b/src/gallium/drivers/nv30/nv30_state_emit.c
index 40fed621b24..9c96085408e 100644
--- a/src/gallium/drivers/nv30/nv30_state_emit.c
+++ b/src/gallium/drivers/nv30/nv30_state_emit.c
@@ -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)))