diff options
author | Marek Olšák <maraeo@gmail.com> | 2010-12-22 13:28:55 +0100 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2010-12-23 16:54:59 +0100 |
commit | c420c0e7d6c4b8fac90fd6a64a49652ac58535fd (patch) | |
tree | f3102992288f3d301a12ae2905ae69f52ccee4a5 /src/gallium/drivers/r300/r300_state_derived.c | |
parent | bf7b6f60aea3caa12c858271af167387fc0cfa4e (diff) | |
download | external_mesa3d-c420c0e7d6c4b8fac90fd6a64a49652ac58535fd.zip external_mesa3d-c420c0e7d6c4b8fac90fd6a64a49652ac58535fd.tar.gz external_mesa3d-c420c0e7d6c4b8fac90fd6a64a49652ac58535fd.tar.bz2 |
r300g: add support for B2G3R3 texturing
Diffstat (limited to 'src/gallium/drivers/r300/r300_state_derived.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_state_derived.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_state_derived.c b/src/gallium/drivers/r300/r300_state_derived.c index d5fc8ec..d3985c1 100644 --- a/src/gallium/drivers/r300/r300_state_derived.c +++ b/src/gallium/drivers/r300/r300_state_derived.c @@ -645,6 +645,10 @@ static uint32_t r300_get_border_color(enum pipe_format format, } switch (desc->channel[0].size) { + case 2: + util_pack_color(border_swizzled, PIPE_FORMAT_B2G3R3_UNORM, &uc); + break; + case 4: util_pack_color(border_swizzled, PIPE_FORMAT_B4G4R4A4_UNORM, &uc); break; |