radeonsi: Rename r600->si for structs in si_resource.h.
authorAndreas Hartmetz <ahartmetz@gmail.com>
Tue, 7 Jan 2014 00:55:08 +0000 (01:55 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 13 Jan 2014 23:07:13 +0000 (00:07 +0100)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_resource.h
src/gallium/drivers/radeonsi/si_state.c
src/gallium/drivers/radeonsi/si_state.h

index a5d2ada1bde32ffcf8c7c1e25ca38fec19665ee2..b088ebc5a19d311184151242c273f44fd9a72d68 100644 (file)
@@ -40,7 +40,7 @@ r600_resource_create_custom(struct pipe_screen *screen,
                PIPE_BIND_CUSTOM, usage, size));
 }
 
-struct r600_surface {
+struct si_surface {
        struct pipe_surface             base;
 };
 
index 6ebbd91a05ae2717bc445557c2a1cf154cda9d17..46fc36ee14efb214343274193c31414b3699d9fd 100644 (file)
@@ -1565,7 +1565,7 @@ static void si_cb(struct si_context *rctx, struct si_pm4_state *pm4,
                  const struct pipe_framebuffer_state *state, int cb)
 {
        struct r600_texture *rtex;
-       struct r600_surface *surf;
+       struct si_surface *surf;
        unsigned level = state->cbufs[cb]->u.tex.level;
        unsigned pitch, slice;
        unsigned color_info, color_attrib, color_pitch, color_view;
@@ -1577,7 +1577,7 @@ static void si_cb(struct si_context *rctx, struct si_pm4_state *pm4,
        unsigned blend_clamp = 0, blend_bypass = 0;
        unsigned max_comp_size;
 
-       surf = (struct r600_surface *)state->cbufs[cb];
+       surf = (struct si_surface *)state->cbufs[cb];
        rtex = (struct r600_texture*)state->cbufs[cb]->texture;
 
        offset = rtex->surface.level[level].offset;
@@ -1744,7 +1744,7 @@ static void si_db(struct si_context *rctx, struct si_pm4_state *pm4,
 {
        struct si_screen *rscreen = rctx->screen;
        struct r600_texture *rtex;
-       struct r600_surface *surf;
+       struct si_surface *surf;
        unsigned level, pitch, slice, format, tile_mode_index, array_mode;
        unsigned macro_aspect, tile_split, stile_split, bankh, bankw, nbanks, pipe_config;
        uint32_t z_info, s_info, db_depth_info;
@@ -1757,7 +1757,7 @@ static void si_db(struct si_context *rctx, struct si_pm4_state *pm4,
                return;
        }
 
-       surf = (struct r600_surface *)state->zsbuf;
+       surf = (struct si_surface *)state->zsbuf;
        level = surf->base.u.tex.level;
        rtex = (struct r600_texture*)surf->base.texture;
 
@@ -3009,7 +3009,7 @@ static struct pipe_surface *r600_create_surface(struct pipe_context *pipe,
                                                const struct pipe_surface *surf_tmpl)
 {
        struct r600_texture *rtex = (struct r600_texture*)texture;
-       struct r600_surface *surface = CALLOC_STRUCT(r600_surface);
+       struct si_surface *surface = CALLOC_STRUCT(si_surface);
        unsigned level = surf_tmpl->u.tex.level;
 
        if (surface == NULL)
index aef0f559cc40a2803000bdc72265e0fea5311b0e..0a211112e02555b9e81e8c65325f297aeff4c886 100644 (file)
@@ -202,7 +202,7 @@ void si_copy_buffer(struct si_context *rctx,
 
 /* si_state.c */
 struct si_pipe_shader_selector;
-struct r600_surface;
+struct si_surface;
 
 boolean si_is_format_supported(struct pipe_screen *screen,
                                enum pipe_format format,