summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texfetch.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-10-21 19:55:44 -0600
committerBrian Paul <[email protected]>2009-10-21 19:55:44 -0600
commite4c700dbbf2a802f32bf62256c801105998c3729 (patch)
tree5929e808cd77e8f5dc5aeb36f019a0a21b6016b8 /src/mesa/main/texfetch.c
parentfa3046431a0da5990043fd4856602b0ba57ff9af (diff)
mesa: added MESA_FORMAT_X8_Z24 format
24-bit Z in 32-bit pixel. We could probably use the MESA_FORMAT_S8_Z24 format but this there's a few places where we explicitly don't want stencil. This format may go away at some point in the future.
Diffstat (limited to 'src/mesa/main/texfetch.c')
-rw-r--r--src/mesa/main/texfetch.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/main/texfetch.c b/src/mesa/main/texfetch.c
index c50219521bc..e6e28aef196 100644
--- a/src/mesa/main/texfetch.c
+++ b/src/mesa/main/texfetch.c
@@ -523,6 +523,13 @@ texfetch_funcs[MESA_FORMAT_COUNT] =
store_texel_z16
},
{
+ MESA_FORMAT_X8_Z24,
+ fetch_texel_1d_f_s8_z24,
+ fetch_texel_2d_f_s8_z24,
+ fetch_texel_3d_f_s8_z24,
+ store_texel_s8_z24
+ },
+ {
MESA_FORMAT_Z32,
fetch_texel_1d_f_z32,
fetch_texel_2d_f_z32,