diff options
author | Dave Airlie <[email protected]> | 2011-09-11 09:45:10 +0100 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2011-10-11 16:13:29 +0100 |
commit | 866f9b18c68ede63c00917ec9c3dae3524ca8826 (patch) | |
tree | b07a53b71fe3aeac8deddbabb00ced29bb33e3c9 /src/gallium/drivers/r600/r600_texture.c | |
parent | 6b3e75de7c2dd6be6bf1acd0e996bdb1def702a1 (diff) |
gallium: rename ZS stencil type to UINT (v2)
these are never USCALED, always UINT in reality.
taken from some work by Christoph Bumiller
v2: fixup formatting of table + tabs
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_texture.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_texture.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c index acb181139bf..1682cc877c9 100644 --- a/src/gallium/drivers/r600/r600_texture.c +++ b/src/gallium/drivers/r600/r600_texture.c @@ -401,13 +401,13 @@ r600_texture_create_object(struct pipe_screen *screen, unsigned stencil_pitch_override = 0; switch (base->format) { - case PIPE_FORMAT_Z24_UNORM_S8_USCALED: + case PIPE_FORMAT_Z24_UNORM_S8_UINT: rtex->real_format = PIPE_FORMAT_Z24X8_UNORM; break; - case PIPE_FORMAT_S8_USCALED_Z24_UNORM: + case PIPE_FORMAT_S8_UINT_Z24_UNORM: rtex->real_format = PIPE_FORMAT_X8Z24_UNORM; break; - case PIPE_FORMAT_Z32_FLOAT_S8X24_USCALED: + case PIPE_FORMAT_Z32_FLOAT_S8X24_UINT: rtex->real_format = PIPE_FORMAT_Z32_FLOAT; break; default: @@ -418,14 +418,14 @@ r600_texture_create_object(struct pipe_screen *screen, /* Divide the pitch in bytes by 4 for stencil, because it has a smaller pixel size. */ if (pitch_in_bytes_override) { - assert(base->format == PIPE_FORMAT_Z24_UNORM_S8_USCALED || - base->format == PIPE_FORMAT_S8_USCALED_Z24_UNORM); + assert(base->format == PIPE_FORMAT_Z24_UNORM_S8_UINT || + base->format == PIPE_FORMAT_S8_UINT_Z24_UNORM); stencil_pitch_override = pitch_in_bytes_override / 4; } /* Allocate the stencil buffer. */ stencil = *base; - stencil.format = PIPE_FORMAT_S8_USCALED; + stencil.format = PIPE_FORMAT_S8_UINT; rtex->stencil = r600_texture_create_object(screen, &stencil, array_mode, stencil_pitch_override, max_buffer_size, NULL, FALSE); @@ -882,26 +882,26 @@ uint32_t r600_translate_texformat(struct pipe_screen *screen, case PIPE_FORMAT_Z16_UNORM: result = FMT_16; goto out_word4; - case PIPE_FORMAT_X24S8_USCALED: + case PIPE_FORMAT_X24S8_UINT: word4 |= S_038010_NUM_FORMAT_ALL(V_038010_SQ_NUM_FORMAT_INT); case PIPE_FORMAT_Z24X8_UNORM: - case PIPE_FORMAT_Z24_UNORM_S8_USCALED: + case PIPE_FORMAT_Z24_UNORM_S8_UINT: result = FMT_8_24; goto out_word4; - case PIPE_FORMAT_S8X24_USCALED: + case PIPE_FORMAT_S8X24_UINT: word4 |= S_038010_NUM_FORMAT_ALL(V_038010_SQ_NUM_FORMAT_INT); case PIPE_FORMAT_X8Z24_UNORM: - case PIPE_FORMAT_S8_USCALED_Z24_UNORM: + case PIPE_FORMAT_S8_UINT_Z24_UNORM: result = FMT_24_8; goto out_word4; - case PIPE_FORMAT_S8_USCALED: + case PIPE_FORMAT_S8_UINT: result = FMT_8; word4 |= S_038010_NUM_FORMAT_ALL(V_038010_SQ_NUM_FORMAT_INT); goto out_word4; case PIPE_FORMAT_Z32_FLOAT: result = FMT_32_FLOAT; goto out_word4; - case PIPE_FORMAT_Z32_FLOAT_S8X24_USCALED: + case PIPE_FORMAT_Z32_FLOAT_S8X24_UINT: result = FMT_X24_8_32_FLOAT; goto out_word4; default: |