diff options
author | Rob Clark <[email protected]> | 2014-07-21 10:41:49 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2014-07-23 09:03:10 -0400 |
commit | 23ae2db8549ab0bd66252449db968e8aec4a3acc (patch) | |
tree | 4de66f6a4c18eee5f0830b628935bd3efa25a8d8 | |
parent | a5ac36a75f7ceda1093dd982a7fc0c07faae7590 (diff) |
freedreno/a3xx: more vtx formats
Actually what we currently handle is just the SCALED versions, and not
the int versions. The difference probably matters more when we actually
support integer in the compiler.
Signed-off-by: Rob Clark <[email protected]>
-rw-r--r-- | src/gallium/drivers/freedreno/a3xx/fd3_util.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_util.c b/src/gallium/drivers/freedreno/a3xx/fd3_util.c index 43f30ba526d..8b7328a8e74 100644 --- a/src/gallium/drivers/freedreno/a3xx/fd3_util.c +++ b/src/gallium/drivers/freedreno/a3xx/fd3_util.c @@ -44,9 +44,11 @@ fd3_pipe2vtx(enum pipe_format format) return VFMT_NORM_BYTE_8; case PIPE_FORMAT_R8_UINT: + case PIPE_FORMAT_R8_USCALED: return VFMT_UBYTE_8; case PIPE_FORMAT_R8_SINT: + case PIPE_FORMAT_R8_SSCALED: return VFMT_BYTE_8; /* 16-bit buffers. */ @@ -58,9 +60,11 @@ fd3_pipe2vtx(enum pipe_format format) return VFMT_NORM_SHORT_16; case PIPE_FORMAT_R16_UINT: + case PIPE_FORMAT_R16_USCALED: return VFMT_USHORT_16; case PIPE_FORMAT_R16_SINT: + case PIPE_FORMAT_R16_SSCALED: return VFMT_SHORT_16; case PIPE_FORMAT_R16_FLOAT: @@ -73,9 +77,11 @@ fd3_pipe2vtx(enum pipe_format format) return VFMT_NORM_BYTE_8_8; case PIPE_FORMAT_R8G8_UINT: + case PIPE_FORMAT_R8G8_USCALED: return VFMT_UBYTE_8_8; case PIPE_FORMAT_R8G8_SINT: + case PIPE_FORMAT_R8G8_SSCALED: return VFMT_BYTE_8_8; /* 24-bit buffers. */ @@ -86,9 +92,11 @@ fd3_pipe2vtx(enum pipe_format format) return VFMT_NORM_BYTE_8_8_8; case PIPE_FORMAT_R8G8B8_UINT: + case PIPE_FORMAT_R8G8B8_USCALED: return VFMT_UBYTE_8_8_8; case PIPE_FORMAT_R8G8B8_SINT: + case PIPE_FORMAT_R8G8B8_SSCALED: return VFMT_BYTE_8_8_8; /* 32-bit buffers. */ @@ -102,18 +110,22 @@ fd3_pipe2vtx(enum pipe_format format) return VFMT_NORM_BYTE_8_8_8_8; case PIPE_FORMAT_R8G8B8A8_UINT: + case PIPE_FORMAT_R8G8B8A8_USCALED: return VFMT_UBYTE_8_8_8_8; case PIPE_FORMAT_R8G8B8A8_SINT: + case PIPE_FORMAT_R8G8B8A8_SSCALED: return VFMT_BYTE_8_8_8_8; case PIPE_FORMAT_R16G16_SSCALED: + case PIPE_FORMAT_R16G16_SINT: return VFMT_SHORT_16_16; case PIPE_FORMAT_R16G16_FLOAT: return VFMT_FLOAT_16_16; case PIPE_FORMAT_R16G16_UINT: + case PIPE_FORMAT_R16G16_USCALED: return VFMT_USHORT_16_16; case PIPE_FORMAT_R16G16_UNORM: @@ -128,6 +140,7 @@ fd3_pipe2vtx(enum pipe_format format) case PIPE_FORMAT_R10G10B10A2_SNORM: return VFMT_NORM_INT_10_10_10_2; + case PIPE_FORMAT_R10G10B10A2_UINT: case PIPE_FORMAT_R10G10B10A2_USCALED: return VFMT_UINT_10_10_10_2; @@ -138,10 +151,12 @@ fd3_pipe2vtx(enum pipe_format format) case PIPE_FORMAT_R16G16B16_FLOAT: return VFMT_FLOAT_16_16_16; + case PIPE_FORMAT_R16G16B16_SINT: case PIPE_FORMAT_R16G16B16_SSCALED: return VFMT_SHORT_16_16_16; case PIPE_FORMAT_R16G16B16_UINT: + case PIPE_FORMAT_R16G16B16_USCALED: return VFMT_USHORT_16_16_16; case PIPE_FORMAT_R16G16B16_SNORM: @@ -165,9 +180,11 @@ fd3_pipe2vtx(enum pipe_format format) return VFMT_NORM_SHORT_16_16_16_16; case PIPE_FORMAT_R16G16B16A16_UINT: + case PIPE_FORMAT_R16G16B16A16_USCALED: return VFMT_USHORT_16_16_16_16; case PIPE_FORMAT_R16G16B16A16_SINT: + case PIPE_FORMAT_R16G16B16A16_SSCALED: return VFMT_SHORT_16_16_16_16; case PIPE_FORMAT_R32G32_FLOAT: |