nv50/nvc0: add support for R4A4_UNORM and A4R4_UNORM formats

R4A4 is needed by OSD in mplayer's xvmc output
This commit is contained in:
Marcin Slusarz 2011-09-13 15:14:19 +02:00
parent 8dbf9d70d3
commit f626d99edf
2 changed files with 16 additions and 0 deletions

View file

@ -575,6 +575,14 @@ const struct nv50_format nv50_format_table[PIPE_FORMAT_COUNT] =
B_(C3, C2, C1, C0, UNORM, UNORM, UNORM, UNORM, 8_8_8_8, 0),
SAMPLER_VIEW },
[PIPE_FORMAT_R4A4_UNORM] = { 0,
B_(C0, ZERO, ZERO, C1, UNORM, UNORM, UNORM, UNORM, 4_4, 0),
SAMPLER_VIEW },
[PIPE_FORMAT_A4R4_UNORM] = { 0,
B_(C1, ZERO, ZERO, C0, UNORM, UNORM, UNORM, UNORM, 4_4, 0),
SAMPLER_VIEW },
/* FIXED FORMATS - hw doesn't support these, convert on vbo push for now */
[PIPE_FORMAT_R32G32B32A32_FIXED] = { 0,

View file

@ -576,6 +576,14 @@ const struct nvc0_format nvc0_format_table[PIPE_FORMAT_COUNT] =
B_(C3, C2, C1, C0, UNORM, UNORM, UNORM, UNORM, 8_8_8_8, 0),
SAMPLER_VIEW },
[PIPE_FORMAT_R4A4_UNORM] = { 0,
B_(C0, ZERO, ZERO, C1, UNORM, UNORM, UNORM, UNORM, 4_4, 0),
SAMPLER_VIEW },
[PIPE_FORMAT_A4R4_UNORM] = { 0,
B_(C1, ZERO, ZERO, C0, UNORM, UNORM, UNORM, UNORM, 4_4, 0),
SAMPLER_VIEW },
/* FIXED FORMATS - hw doesn't support these, convert on vbo push for now */
[PIPE_FORMAT_R32G32B32A32_FIXED] = { 0,