summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvc0/nvc0_surface.c
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2011-07-11 11:33:11 +0200
committerChristoph Bumiller <[email protected]>2011-07-14 12:51:06 +0200
commit7e2827fad95071e04e382be0117c654445764c52 (patch)
treeafd9c5b25598a2985f99694c68c99a5d24242088 /src/gallium/drivers/nvc0/nvc0_surface.c
parentb2dcf880e8bcd61be59602f5a2d18c77a5fc60c1 (diff)
nv50,nvc0: extensive surface format renaming to get consistency
Now the component ordering is consistent and matches gallium again.
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_surface.c')
-rw-r--r--src/gallium/drivers/nvc0/nvc0_surface.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_surface.c b/src/gallium/drivers/nvc0/nvc0_surface.c
index 4484a9f8b76..67bba3c6cc3 100644
--- a/src/gallium/drivers/nvc0/nvc0_surface.c
+++ b/src/gallium/drivers/nvc0/nvc0_surface.c
@@ -62,11 +62,11 @@ nvc0_2d_format(enum pipe_format format)
case 2:
return NV50_SURFACE_FORMAT_R16_UNORM;
case 4:
- return NV50_SURFACE_FORMAT_A8R8G8B8_UNORM;
+ return NV50_SURFACE_FORMAT_BGRA8_UNORM;
case 8:
- return NV50_SURFACE_FORMAT_R16G16B16A16_UNORM;
+ return NV50_SURFACE_FORMAT_RGBA16_UNORM;
case 16:
- return NV50_SURFACE_FORMAT_R32G32B32A32_FLOAT;
+ return NV50_SURFACE_FORMAT_RGBA32_FLOAT;
default:
return 0;
}