r300g: remove use of c++ keywords
authorMarek Olšák <maraeo@gmail.com>
Sat, 17 Apr 2010 22:09:19 +0000 (00:09 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sun, 18 Apr 2010 00:56:09 +0000 (02:56 +0200)
src/gallium/drivers/r300/r300_resource.c
src/gallium/drivers/r300/r300_screen_buffer.c
src/gallium/drivers/r300/r300_screen_buffer.h
src/gallium/drivers/r300/r300_texture.h

index 0469b21b752547bc362dcfadf7d8a928e9ed6969..9b661a21246e7be1d4a5ed40453491e8392da5b3 100644 (file)
@@ -22,6 +22,7 @@
  *
  * Authors: Dave Airlie
  */
+
 #include <stdio.h>
 
 #include "util/u_inlines.h"
 #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);
 }
 
 
index cb47ba16882360723f8662536422cf2f8ab4519e..b7b7a6eff272157bd310e3a1def7c5fa913555f1 100644 (file)
@@ -306,7 +306,7 @@ struct u_resource_vtbl r300_buffer_vtbl =
 
 
 struct pipe_resource *r300_buffer_create(struct pipe_screen *screen,
-                                        const struct pipe_resource *template)
+                                        const struct pipe_resource *templ)
 {
     struct r300_screen *r300screen = r300_screen(screen);
     struct r300_buffer *rbuf;
@@ -318,7 +318,7 @@ struct pipe_resource *r300_buffer_create(struct pipe_screen *screen,
 
     rbuf->magic = R300_BUFFER_MAGIC;
 
-    rbuf->b.b = *template;
+    rbuf->b.b = *templ;
     rbuf->b.vtbl = &r300_buffer_vtbl;
     pipe_reference_init(&rbuf->b.b.reference, 1);
     rbuf->b.b.screen = screen;
index 93009ea02fddb5fed4b3996d168f15901ce66ef0..9409bf32b81230c2a667622081a5abbcf5bc06f4 100644 (file)
@@ -96,7 +96,7 @@ int r300_upload_index_buffer(struct r300_context *r300,
 
 
 struct pipe_resource *r300_buffer_create(struct pipe_screen *screen,
-                                        const struct pipe_resource *template);
+                                        const struct pipe_resource *templ);
 
 struct pipe_resource *r300_user_buffer_create(struct pipe_screen *screen,
                                              void *ptr,
index 7b8b40551dafca2f8a293f567a09946a66f6e62e..453d42b188fcfc6fb68e6a250e9a422ba8bbfd41 100644 (file)
@@ -56,7 +56,7 @@ r300_texture_from_handle(struct pipe_screen* screen,
 
 struct pipe_resource*
 r300_texture_create(struct pipe_screen* screen,
-                   const struct pipe_resource* template);
+                   const struct pipe_resource* templ);
 
 
 struct pipe_surface* r300_get_tex_surface(struct pipe_screen* screen,