diff options
author | José Fonseca <jfonseca@vmware.com> | 2010-03-01 18:12:19 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2010-03-01 18:53:32 +0000 |
commit | b2b1e899f64ed8a96ea2df6ed45accd430d44363 (patch) | |
tree | fca9efc010eff7a91228758a1e605cd57e851eda /src/gallium/drivers/i915/i915_state_emit.c | |
parent | c828f784e54fa3bec3c4295dfdffce0ae9fb5e9c (diff) | |
download | external_mesa3d-b2b1e899f64ed8a96ea2df6ed45accd430d44363.zip external_mesa3d-b2b1e899f64ed8a96ea2df6ed45accd430d44363.tar.gz external_mesa3d-b2b1e899f64ed8a96ea2df6ed45accd430d44363.tar.bz2 |
i915g: Rename pipe formats.
Diffstat (limited to 'src/gallium/drivers/i915/i915_state_emit.c')
-rw-r--r-- | src/gallium/drivers/i915/i915_state_emit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/i915/i915_state_emit.c b/src/gallium/drivers/i915/i915_state_emit.c index a3d4e3b..d2ab530 100644 --- a/src/gallium/drivers/i915/i915_state_emit.c +++ b/src/gallium/drivers/i915/i915_state_emit.c @@ -37,9 +37,9 @@ static unsigned translate_format( enum pipe_format format ) { switch (format) { - case PIPE_FORMAT_A8R8G8B8_UNORM: + case PIPE_FORMAT_B8G8R8A8_UNORM: return COLOR_BUF_ARGB8888; - case PIPE_FORMAT_R5G6B5_UNORM: + case PIPE_FORMAT_B5G6R5_UNORM: return COLOR_BUF_RGB565; default: assert(0); @@ -50,7 +50,7 @@ static unsigned translate_format( enum pipe_format format ) static unsigned translate_depth_format( enum pipe_format zformat ) { switch (zformat) { - case PIPE_FORMAT_S8Z24_UNORM: + case PIPE_FORMAT_Z24S8_UNORM: return DEPTH_FRMT_24_FIXED_8_OTHER; case PIPE_FORMAT_Z16_UNORM: return DEPTH_FRMT_16_FIXED; @@ -259,7 +259,7 @@ i915_emit_hardware_state(struct i915_context *i915 ) if (cbuf_surface) cformat = cbuf_surface->format; else - cformat = PIPE_FORMAT_A8R8G8B8_UNORM; /* arbitrary */ + cformat = PIPE_FORMAT_B8G8R8A8_UNORM; /* arbitrary */ cformat = translate_format(cformat); if (depth_surface) |