gallium: replace old PIPE_FORMAT_U_S8 with PIPE_FORMAT_S8_UNORM

This commit is contained in:
Brian Paul
2008-04-30 16:41:53 -06:00
parent c32477742f
commit 18f4d96265
2 changed files with 3 additions and 3 deletions

View File

@@ -243,7 +243,7 @@ stencil_test_quad(struct quad_stage *qs, struct quad_header *quad)
stencilVals[j] = tile->data.depth32[y][x] & 0xff; stencilVals[j] = tile->data.depth32[y][x] & 0xff;
} }
break; break;
case PIPE_FORMAT_U_S8: case PIPE_FORMAT_S8_UNORM:
for (j = 0; j < QUAD_SIZE; j++) { for (j = 0; j < QUAD_SIZE; j++) {
int x = quad->x0 % TILE_SIZE + (j & 1); int x = quad->x0 % TILE_SIZE + (j & 1);
int y = quad->y0 % TILE_SIZE + (j >> 1); int y = quad->y0 % TILE_SIZE + (j >> 1);
@@ -311,7 +311,7 @@ stencil_test_quad(struct quad_stage *qs, struct quad_header *quad)
tile->data.depth32[y][x] = z24s8; tile->data.depth32[y][x] = z24s8;
} }
break; break;
case PIPE_FORMAT_U_S8: case PIPE_FORMAT_S8_UNORM:
for (j = 0; j < QUAD_SIZE; j++) { for (j = 0; j < QUAD_SIZE; j++) {
int x = quad->x0 % TILE_SIZE + (j & 1); int x = quad->x0 % TILE_SIZE + (j & 1);
int y = quad->y0 % TILE_SIZE + (j >> 1); int y = quad->y0 % TILE_SIZE + (j >> 1);

View File

@@ -168,7 +168,7 @@ sp_tile_cache_set_surface(struct softpipe_tile_cache *tc,
tc->depth_stencil = (ps->format == PIPE_FORMAT_S8Z24_UNORM || tc->depth_stencil = (ps->format == PIPE_FORMAT_S8Z24_UNORM ||
ps->format == PIPE_FORMAT_Z16_UNORM || ps->format == PIPE_FORMAT_Z16_UNORM ||
ps->format == PIPE_FORMAT_Z32_UNORM || ps->format == PIPE_FORMAT_Z32_UNORM ||
ps->format == PIPE_FORMAT_U_S8); ps->format == PIPE_FORMAT_S8_UNORM);
} }
} }