i915: Fix for s8_z24 textures not being shown
authorJakob Bornecrantz <jakob@tungstengraphics.com>
Tue, 17 Jun 2008 23:45:21 +0000 (01:45 +0200)
committerJakob Bornecrantz <jakob@tungstengraphics.com>
Tue, 17 Jun 2008 23:48:24 +0000 (01:48 +0200)
src/gallium/drivers/i915simple/i915_state_sampler.c

index fbdc1a3..2444084 100644 (file)
@@ -212,7 +212,7 @@ translate_texture_format(enum pipe_format pipeFormat)
       return (MAPSURF_COMPRESSED | MT_COMPRESS_DXT4_5);
 #endif
    case PIPE_FORMAT_S8Z24_UNORM:
-      return (MAPSURF_32BIT | MT_32BIT_xL824);
+      return (MAPSURF_32BIT | MT_32BIT_xI824);
    default:
       debug_printf("i915: translate_texture_format() bad image format %x\n",
               pipeFormat);