diff options
author | Michel Dänzer <[email protected]> | 2007-06-15 15:24:35 +0200 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2007-08-01 17:46:32 +0200 |
commit | 1f0d9bf05efce44990b6b37a0b2dd2aecdfc3fc2 (patch) | |
tree | 238a1568ff28196d4ba4a5a2563c2121aee2ef35 | |
parent | 8bcae2a527d6253a07d98b4ec67b398906e4690b (diff) |
i915tex: Missing piece of SetTexOffset hook implementation for I830 generation.
-rw-r--r-- | src/mesa/drivers/dri/i915tex/i830_vtbl.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/i915tex/i830_vtbl.c b/src/mesa/drivers/dri/i915tex/i830_vtbl.c index dd0670dec37..e432648ada0 100644 --- a/src/mesa/drivers/dri/i915tex/i830_vtbl.c +++ b/src/mesa/drivers/dri/i915tex/i830_vtbl.c @@ -490,11 +490,13 @@ i830_emit_state(struct intel_context *intel) DRM_BO_MASK_MEM | DRM_BO_FLAG_READ, state->tex_offset[i] | TM0S0_USE_FENCE); } - else { - assert(i == 0); - assert(state == &i830->meta); - OUT_BATCH(0); - } + else if (state == &i830->meta) { + assert(i == 0); + OUT_BATCH(0); + } + else { + OUT_BATCH(state->tex_offset[i]); + } OUT_BATCH(state->Tex[i][I830_TEXREG_TM0S1]); OUT_BATCH(state->Tex[i][I830_TEXREG_TM0S2]); |