diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2008-01-10 16:48:33 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2008-01-10 16:48:33 +0800 |
commit | 7086df58688dc375ffd4c0fb9a9884eae05a6e46 (patch) | |
tree | d354c6944371b7741f685d06b83ca4dae4cbf4fd /src/mesa | |
parent | c30392f187dc45412e579283989992ed4dd2fed8 (diff) |
i965: fix bug #14002
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm_sampler_state.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 0c75021324..6ca7709916 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); |