diff options
author | Marek Olšák <[email protected]> | 2011-12-31 14:05:47 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-01-01 11:47:06 +0100 |
commit | 2cd7e5b737e1384bb6d27f3cc2c8524b07230d56 (patch) | |
tree | 906d8b2dd22899695640899b4946ddb786e6f95d /src/gallium/drivers | |
parent | ce9d61fec64138ebf8d0bec2511e66593297b7d5 (diff) |
r300g: inline r300_resource_set_properties
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/r300/r300_texture.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/gallium/drivers/r300/r300_texture.c b/src/gallium/drivers/r300/r300_texture.c index b63afa18c2b..0b352e9daca 100644 --- a/src/gallium/drivers/r300/r300_texture.c +++ b/src/gallium/drivers/r300/r300_texture.c @@ -830,21 +830,6 @@ static void r300_texture_setup_fb_state(struct r300_surface *surf) } } -static void r300_resource_set_properties(struct pipe_screen *screen, - struct pipe_resource *tex, - const struct pipe_resource *new_properties) -{ - struct r300_screen *rscreen = r300_screen(screen); - struct r300_resource *res = r300_resource(tex); - - SCREEN_DBG(rscreen, DBG_TEX, - "r300: texture_set_properties: %s -> %s\n", - util_format_short_name(tex->format), - util_format_short_name(new_properties->format)); - - r300_texture_desc_init(rscreen, res, new_properties); -} - static void r300_texture_destroy(struct pipe_screen *screen, struct pipe_resource* texture) { @@ -912,7 +897,7 @@ r300_texture_create_object(struct r300_screen *rscreen, RADEON_DOMAIN_VRAM | RADEON_DOMAIN_GTT; tex->buf = buffer; - r300_resource_set_properties(&rscreen->screen, &tex->b.b.b, base); + r300_texture_desc_init(rscreen, tex, base); /* Create the backing buffer if needed. */ if (!tex->buf) { |