summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-04-28 09:38:18 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-04-28 09:38:18 -0600
commitee4434121c5ce556af8af899297d4249435c6d71 (patch)
tree1cdaf2ea920b3c92b94d13d4a025b2bfcd990a47
parent0d179ffe9774487f37838aa634c59ff8ebc1111d (diff)
gallium: return enum pipe_format, not uint, for a few functions
-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[] = {