diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2008-03-14 11:39:08 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2008-03-14 11:50:11 +0800 |
commit | f94d317d7aea8043b179a0ba64308606375500d7 (patch) | |
tree | 331f36f644685b9b93b7195c3e63f1e25bf87cfb /src/mesa/drivers/dri/i965/brw_wm_surface_state.c | |
parent | 142fcd3a13bcac37b8b0124f68854d515f2596fc (diff) |
intel: fix abort issue with shadowtex demo when use
DEPTH_STENCIL texture. (bug#14952).
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 | 3 |
1 files changed, 3 insertions, 0 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 d0f86b5687..86566df388 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c +++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c @@ -133,6 +133,9 @@ static GLuint translate_tex_format( GLuint mesa_format ) case MESA_FORMAT_SRGB_DXT1: return BRW_SURFACEFORMAT_BC1_UNORM_SRGB; + case MESA_FORMAT_Z24_S8: + return BRW_SURFACEFORMAT_I24X8_UNORM; + default: assert(0); return 0; |