summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_format.c
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2008-04-29 09:00:48 +1000
committerBen Skeggs <skeggsb@gmail.com>2008-04-29 09:00:48 +1000
commit95295081a8557f0b63cd89f387205d5abe772788 (patch)
treebbc1ee8f36fdb2d2ba34f15cf406292e1439a87d /src/mesa/state_tracker/st_format.c
parent480ab1b7893290505efba925ea95d3b173aa97d4 (diff)
parent059ab50c60f19fd6dd30c574644c0e4e5747a330 (diff)
Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
Diffstat (limited to 'src/mesa/state_tracker/st_format.c')
-rw-r--r--src/mesa/state_tracker/st_format.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c
index 3d15a03cab..8b5f84cd56 100644
--- a/src/mesa/state_tracker/st_format.c
+++ b/src/mesa/state_tracker/st_format.c
@@ -293,7 +293,7 @@ st_mesa_format_to_pipe_format(GLuint mesaFormat)
/**
* Find an RGBA format supported by the context/winsys.
*/
-static GLuint
+static enum pipe_format
default_rgba_format(struct pipe_screen *screen, uint type)
{
static const enum pipe_format colorFormats[] = {
@@ -315,7 +315,7 @@ default_rgba_format(struct pipe_screen *screen, uint type)
/**
* Search list of formats for first RGBA format with >8 bits/channel.
*/
-static GLuint
+static enum pipe_format
default_deep_rgba_format(struct pipe_screen *screen, uint type)
{
if (screen->is_format_supported(screen, PIPE_FORMAT_R16G16B16A16_SNORM, type)) {
@@ -331,7 +331,7 @@ default_deep_rgba_format(struct pipe_screen *screen, uint type)
/**
* Find an Z format supported by the context/winsys.
*/
-static GLuint
+static enum pipe_format
default_depth_format(struct pipe_screen *screen, uint type)
{
static const enum pipe_format zFormats[] = {