diff options
Diffstat (limited to 'lib/mesa/src/gallium/drivers/freedreno/a4xx/fd4_format.c')
-rw-r--r-- | lib/mesa/src/gallium/drivers/freedreno/a4xx/fd4_format.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/mesa/src/gallium/drivers/freedreno/a4xx/fd4_format.c b/lib/mesa/src/gallium/drivers/freedreno/a4xx/fd4_format.c index efc5e7c22..3e1dc2778 100644 --- a/lib/mesa/src/gallium/drivers/freedreno/a4xx/fd4_format.c +++ b/lib/mesa/src/gallium/drivers/freedreno/a4xx/fd4_format.c @@ -394,29 +394,6 @@ fd4_pipe2fetchsize(enum pipe_format format) } } -/* we need to special case a bit the depth/stencil restore, because we are - * using the texture sampler to blit into the depth/stencil buffer, *not* - * into a color buffer. Otherwise fd4_tex_swiz() will do the wrong thing, - * as it is assuming that you are sampling into normal render target.. - * - * TODO looks like we can probably share w/ a3xx.. - */ -enum pipe_format -fd4_gmem_restore_format(enum pipe_format format) -{ - switch (format) { - case PIPE_FORMAT_Z24X8_UNORM: - case PIPE_FORMAT_Z24_UNORM_S8_UINT: - return PIPE_FORMAT_R8G8B8A8_UNORM; - case PIPE_FORMAT_Z16_UNORM: - return PIPE_FORMAT_R8G8_UNORM; - case PIPE_FORMAT_S8_UINT: - return PIPE_FORMAT_R8_UNORM; - default: - return format; - } -} - enum a4xx_depth_format fd4_pipe2depth(enum pipe_format format) { |