summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_resource.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-04-18 00:09:19 +0200
committerMarek Olšák <[email protected]>2010-04-18 02:56:09 +0200
commitbb4f5fff0c782f35353e8bfc1b1227e3cc3d5986 (patch)
treee54796050c913f81fcfe0059a4056ee6953c18f3 /src/gallium/drivers/r300/r300_resource.c
parentc383defdaacab0fe7f35e7a4ae5b57228cf5310c (diff)
r300g: remove use of c++ keywords
Diffstat (limited to 'src/gallium/drivers/r300/r300_resource.c')
-rw-r--r--src/gallium/drivers/r300/r300_resource.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/gallium/drivers/r300/r300_resource.c b/src/gallium/drivers/r300/r300_resource.c
index 0469b21b752..9b661a21246 100644
--- a/src/gallium/drivers/r300/r300_resource.c
+++ b/src/gallium/drivers/r300/r300_resource.c
@@ -22,6 +22,7 @@
*
* Authors: Dave Airlie
*/
+
#include <stdio.h>
#include "util/u_inlines.h"
@@ -34,32 +35,28 @@
#include "r300_texture.h"
#include "r300_screen.h"
#include "r300_screen_buffer.h"
-
#include "r300_winsys.h"
-
-
-
static struct pipe_resource *
r300_resource_create(struct pipe_screen *screen,
- const struct pipe_resource *template)
+ const struct pipe_resource *templ)
{
- if (template->target == PIPE_BUFFER)
- return r300_buffer_create(screen, template);
+ if (templ->target == PIPE_BUFFER)
+ return r300_buffer_create(screen, templ);
else
- return r300_texture_create(screen, template);
+ return r300_texture_create(screen, templ);
}
static struct pipe_resource *
r300_resource_from_handle(struct pipe_screen * screen,
- const struct pipe_resource *template,
+ const struct pipe_resource *templ,
struct winsys_handle *whandle)
{
- if (template->target == PIPE_BUFFER)
+ if (templ->target == PIPE_BUFFER)
return NULL;
else
- return r300_texture_from_handle(screen, template, whandle);
+ return r300_texture_from_handle(screen, templ, whandle);
}