diff options
author | Corbin Simpson <[email protected]> | 2009-06-27 10:57:03 -0700 |
---|---|---|
committer | Corbin Simpson <[email protected]> | 2009-06-27 12:07:59 -0700 |
commit | f150e05afcbce73ff8422ffef2ce02536f691f2c (patch) | |
tree | daef75b5de51560b4c3db1d40033af18f7332300 /src/gallium/drivers/r300/r300_texture.h | |
parent | 1ac72aedb24c56c7158f770f4297516b3bf1899d (diff) |
r300g: Fix EXT_packed_depth_stencil functionality.
Allow Z24S8 to be a true texture.
Diffstat (limited to 'src/gallium/drivers/r300/r300_texture.h')
-rw-r--r-- | src/gallium/drivers/r300/r300_texture.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_texture.h b/src/gallium/drivers/r300/r300_texture.h index 28157de57bf..5511cca48cb 100644 --- a/src/gallium/drivers/r300/r300_texture.h +++ b/src/gallium/drivers/r300/r300_texture.h @@ -55,10 +55,14 @@ static INLINE uint32_t r300_translate_texformat(enum pipe_format format) /* DXT5 */ case PIPE_FORMAT_DXT5_RGBA: return R300_EASY_TX_FORMAT(Y, Z, W, X, DXT5); + /* W24_FP */ + case PIPE_FORMAT_Z24S8_UNORM: + return R300_EASY_TX_FORMAT(X, X, X, X, W24_FP); default: debug_printf("r300: Implementation error: " "Got unsupported texture format %s in %s\n", pf_name(format), __FUNCTION__); + assert(0); break; } return 0; |