diff options
author | Dave Airlie <[email protected]> | 2010-10-07 13:01:37 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2010-10-13 09:30:04 +1000 |
commit | 40acb109de61ba445b9247f7d53eaf1c2b9b1245 (patch) | |
tree | b1540b452c4f2004f17c33d4e2f3327d655eac43 /src | |
parent | ef8bb7ada98f1ddc8e2554a7336af5d669cb1290 (diff) |
r600g: add support for S8, X24S8 and S8X24 sampler formats.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/r600/r600_texture.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c index db88346afbe..496b28a3b9c 100644 --- a/src/gallium/drivers/r600/r600_texture.c +++ b/src/gallium/drivers/r600/r600_texture.c @@ -498,14 +498,22 @@ uint32_t r600_translate_texformat(enum pipe_format format, case PIPE_FORMAT_Z16_UNORM: result = V_0280A0_COLOR_16; goto out_word4; + case PIPE_FORMAT_X24S8_USCALED: + word4 |= S_038010_NUM_FORMAT_ALL(V_038010_SQ_NUM_FORMAT_INT); case PIPE_FORMAT_Z24X8_UNORM: case PIPE_FORMAT_Z24_UNORM_S8_USCALED: result = V_0280A0_COLOR_8_24; goto out_word4; + case PIPE_FORMAT_S8X24_USCALED: + word4 |= S_038010_NUM_FORMAT_ALL(V_038010_SQ_NUM_FORMAT_INT); case PIPE_FORMAT_X8Z24_UNORM: case PIPE_FORMAT_S8_USCALED_Z24_UNORM: result = V_0280A0_COLOR_24_8; goto out_word4; + case PIPE_FORMAT_S8_USCALED: + result = V_0280A0_COLOR_8; + word4 |= S_038010_NUM_FORMAT_ALL(V_038010_SQ_NUM_FORMAT_INT); + goto out_word4; default: goto out_unknown; } |