diff options
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_wm_surface_state.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c index ece3197a858..c55182d7ffb 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c +++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c @@ -571,15 +571,15 @@ static void brw_update_texture_surface(struct gl_context *ctx, if (obj->StencilSampling && firstImage->_BaseFormat == GL_DEPTH_STENCIL) { if (devinfo->gen <= 7) { - assert(mt->r8stencil_mt && !mt->stencil_mt->r8stencil_needs_update); - mt = mt->r8stencil_mt; + assert(mt->shadow_mt && !mt->stencil_mt->shadow_needs_update); + mt = mt->shadow_mt; } else { mt = mt->stencil_mt; } format = ISL_FORMAT_R8_UINT; } else if (devinfo->gen <= 7 && mt->format == MESA_FORMAT_S_UINT8) { - assert(mt->r8stencil_mt && !mt->r8stencil_needs_update); - mt = mt->r8stencil_mt; + assert(mt->shadow_mt && !mt->shadow_needs_update); + mt = mt->shadow_mt; format = ISL_FORMAT_R8_UINT; } |