diff options
author | John Kåre Alsaker <[email protected]> | 2012-10-09 00:50:53 +0200 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-10-10 18:19:44 -0600 |
commit | 1a4aad11b01163c5e11c991b18997060dcedf41d (patch) | |
tree | 897dc2b19d74f207607faa45ae3aebc0c74e4ec9 /src/gallium/drivers/svga | |
parent | 34c58acb59bc0b827e28ef9e89044621ab0b3ee1 (diff) |
svga: Add support for 16-bit per channel RGBA
Signed-off-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga')
-rw-r--r-- | src/gallium/drivers/svga/svga_format.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_format.c b/src/gallium/drivers/svga/svga_format.c index 51761069788..5a153a8383d 100644 --- a/src/gallium/drivers/svga/svga_format.c +++ b/src/gallium/drivers/svga/svga_format.c @@ -66,6 +66,9 @@ svga_translate_format(struct svga_screen *ss, case PIPE_FORMAT_B4G4R4A4_UNORM: return SVGA3D_A4R4G4B4; + case PIPE_FORMAT_R16G16B16A16_UNORM: + return SVGA3D_A16B16G16R16; + case PIPE_FORMAT_Z16_UNORM: return bind & PIPE_BIND_SAMPLER_VIEW ? ss->depth.z16 : SVGA3D_Z_D16; case PIPE_FORMAT_S8_UINT_Z24_UNORM: |