diff options
author | Christoph Bumiller <[email protected]> | 2010-07-26 11:32:27 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2010-07-31 18:32:34 +0200 |
commit | 28ded2585ca856b67b8cc0dd7c1de000b3fc729b (patch) | |
tree | b90de5ede190bfab7122a9bf710f2ef2ecb9560f /src/gallium/drivers | |
parent | 7d34e79e449284c6a833c2e58c714ea1e48669dd (diff) |
nv50: add signed RGTC1 to format table, allow 2_10_10_10 for vbufs
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/nv50/nv50_formats.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gallium/drivers/nv50/nv50_formats.c b/src/gallium/drivers/nv50/nv50_formats.c index 433c74e611c..e1c7dae3063 100644 --- a/src/gallium/drivers/nv50/nv50_formats.c +++ b/src/gallium/drivers/nv50/nv50_formats.c @@ -86,12 +86,12 @@ const struct nv50_format nv50_format_table[PIPE_FORMAT_COUNT] = SAMPLER_VIEW }, [PIPE_FORMAT_R10G10B10A2_UNORM] = { NV50TCL_RT_FORMAT_A2B10G10R10_UNORM, - A_(C0, C1, C2, C3, UNORM, UNORM, UNORM, UNORM, 2_10_10_10, 1), - SAMPLER_VIEW | RENDER_TARGET | SCANOUT }, + A_(C0, C1, C2, C3, UNORM, UNORM, UNORM, UNORM, 2_10_10_10, 0), + SAMPLER_VIEW | RENDER_TARGET | VERTEX_BUFFER | SCANOUT }, [PIPE_FORMAT_B10G10R10A2_UNORM] = { NV50TCL_RT_FORMAT_A2R10G10B10_UNORM, A_(C2, C1, C0, C3, UNORM, UNORM, UNORM, UNORM, 2_10_10_10, 1), - SAMPLER_VIEW | RENDER_TARGET }, + SAMPLER_VIEW | RENDER_TARGET | VERTEX_BUFFER }, /* DEPTH/STENCIL FORMATS */ @@ -168,6 +168,10 @@ const struct nv50_format nv50_format_table[PIPE_FORMAT_COUNT] = B_(C0, ZERO, ZERO, ONE, UNORM, UNORM, UNORM, UNORM, RGTC1, 0), SAMPLER_VIEW }, + [PIPE_FORMAT_RGTC1_SNORM] = { 0, + B_(C0, ZERO, ZERO, ONE, SNORM, SNORM, SNORM, SNORM, RGTC1, 0), + SAMPLER_VIEW }, + [PIPE_FORMAT_RGTC2_UNORM] = { 0, B_(C0, C1, ZERO, ONE, UNORM, UNORM, UNORM, UNORM, RGTC2, 0), SAMPLER_VIEW }, |