mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
i915: Fix depth texturing since 86e62b2357
The 965 driver already had the X8_Z24 case, but 915 was missing it. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
9a82d89a8f
commit
6aae729d6e
1 changed files with 1 additions and 0 deletions
|
|
@ -82,6 +82,7 @@ translate_texture_format(gl_format mesa_format, GLenum DepthMode)
|
|||
case MESA_FORMAT_RGBA_DXT5:
|
||||
return (MAPSURF_COMPRESSED | MT_COMPRESS_DXT4_5);
|
||||
case MESA_FORMAT_S8_Z24:
|
||||
case MESA_FORMAT_X8_Z24:
|
||||
if (DepthMode == GL_ALPHA)
|
||||
return (MAPSURF_32BIT | MT_32BIT_x8A24);
|
||||
else if (DepthMode == GL_INTENSITY)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue