From: Xiang, Haihao Date: Thu, 10 Jan 2008 08:48:33 +0000 (+0800) Subject: i965: fix bug #14002 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7086df58688dc375ffd4c0fb9a9884eae05a6e46;p=mesa.git i965: fix bug #14002 --- diff --git a/src/mesa/drivers/dri/i965/brw_wm_sampler_state.c b/src/mesa/drivers/dri/i965/brw_wm_sampler_state.c index 0c750213240..6ca77099167 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_sampler_state.c +++ b/src/mesa/drivers/dri/i965/brw_wm_sampler_state.c @@ -100,7 +100,7 @@ struct wm_sampler_key { float lod_bias; float max_aniso; GLenum minfilter, magfilter; - GLenum comparemode; + GLenum comparemode, comparefunc; dri_bo *sdc_bo; } sampler[BRW_MAX_TEX_UNIT]; }; @@ -190,7 +190,7 @@ static void brw_update_sampler_state(struct wm_sampler_entry *key, * shadow comparison is enabled on each/any texture unit. */ sampler->ss0.shadow_function = - intel_translate_shadow_compare_func(key->comparemode); + intel_translate_shadow_compare_func(key->comparefunc); } /* Set LOD bias: @@ -241,6 +241,7 @@ brw_wm_sampler_populate_key(struct brw_context *brw, entry->minfilter = texObj->MinFilter; entry->magfilter = texObj->MagFilter; entry->comparemode = texObj->CompareMode; + entry->comparefunc = texObj->CompareFunc; dri_bo_unreference(brw->wm.sdc_bo[unit]); brw->wm.sdc_bo[unit] = upload_default_color(brw, texObj->BorderColor);