From: Michel Dänzer Date: Fri, 15 Jun 2007 13:24:35 +0000 (+0200) Subject: i915tex: Missing piece of SetTexOffset hook implementation for I830 generation. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9cde7fb61dd26cd98a26dcb0a54197e8d28ac3be;p=mesa.git i915tex: Missing piece of SetTexOffset hook implementation for I830 generation. --- 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]);