From ad3937fd4efdd0a9a2b79ab6ae899a4ca1f3bb01 Mon Sep 17 00:00:00 2001 From: Andreas Heider Date: Mon, 4 Nov 2013 11:51:21 +0100 Subject: freedreno: Add a few texture formats --- src/gallium/drivers/freedreno/a3xx/fd3_util.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_util.c b/src/gallium/drivers/freedreno/a3xx/fd3_util.c index 7503dfefa31..07f23fd4e4a 100644 --- a/src/gallium/drivers/freedreno/a3xx/fd3_util.c +++ b/src/gallium/drivers/freedreno/a3xx/fd3_util.c @@ -228,6 +228,7 @@ fd3_pipe2tex(enum pipe_format format) case PIPE_FORMAT_B8G8R8A8_UNORM: case PIPE_FORMAT_B8G8R8X8_UNORM: + case PIPE_FORMAT_R8G8B8A8_UNORM: return TFMT_NORM_UINT_8_8_8_8; case PIPE_FORMAT_Z24X8_UNORM: @@ -278,6 +279,7 @@ fd3_pipe2color(enum pipe_format format) switch (format) { case PIPE_FORMAT_B8G8R8A8_UNORM: case PIPE_FORMAT_B8G8R8X8_UNORM: + case PIPE_FORMAT_R8G8B8A8_UNORM: return RB_R8G8B8A8_UNORM; case PIPE_FORMAT_Z16_UNORM: @@ -290,6 +292,7 @@ fd3_pipe2color(enum pipe_format format) case PIPE_FORMAT_R8_UNORM: case PIPE_FORMAT_L8_UNORM: + case PIPE_FORMAT_A8_UNORM: return RB_A8_UNORM; // TODO add more.. -- cgit v1.2.3