summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2008-08-20 15:54:41 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2008-08-20 15:54:41 +0800
commitb17b110716936c32d20910cb9589038062b4f527 (patch)
tree0b68256919f2dd4049a52f2256d2312a2ea7ae46 /src/mesa/drivers/dri/i965
parenta667d67cd6c8b9aa622cd3fce065aca92e1e8a76 (diff)
i965: Enable GL_ARB_fragment_program_shadow and fix key->shadowtex_mask. (bug #16852, #16853)
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r--src/mesa/drivers/dri/i965/brw_wm.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm.c b/src/mesa/drivers/dri/i965/brw_wm.c
index 93ae8dc693..361312c2ca 100644
--- a/src/mesa/drivers/dri/i965/brw_wm.c
+++ b/src/mesa/drivers/dri/i965/brw_wm.c
@@ -279,12 +279,6 @@ static void brw_wm_populate_key( struct brw_context *brw,
const struct gl_texture_object *t = unit->_Current;
if (unit->_ReallyEnabled) {
-
- if (t->CompareMode == GL_COMPARE_R_TO_TEXTURE_ARB &&
- t->Image[0][t->BaseLevel]->_BaseFormat == GL_DEPTH_COMPONENT) {
- key->shadowtex_mask |= 1<<i;
- }
-
if (t->Image[0][t->BaseLevel]->InternalFormat == GL_YCBCR_MESA) {
key->yuvtex_mask |= 1<<i;
if (t->Image[0][t->BaseLevel]->TexFormat->MesaFormat ==
@@ -294,6 +288,9 @@ static void brw_wm_populate_key( struct brw_context *brw,
}
}
+ /* Shadow */
+ key->shadowtex_mask = fp->program.Base.ShadowSamplers;
+
/* _NEW_BUFFERS */
/*
* Include the draw buffer origin and height so that we can calculate