diff options
author | Marek Olšák <[email protected]> | 2010-06-02 05:50:58 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-06-02 06:01:22 +0200 |
commit | 37f3454eb3afa1297126a8d77a563d734c292a37 (patch) | |
tree | ecef6b95adaf132fef15fd23caa7daed86a018f7 /src/gallium/drivers/r300/r300_texture.c | |
parent | ae3063066cb209efd07413f125bb86108906b033 (diff) |
r300g: let the driver determine the GEM domain for buffer_create
Diffstat (limited to 'src/gallium/drivers/r300/r300_texture.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_texture.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_texture.c b/src/gallium/drivers/r300/r300_texture.c index a4b5d34ce1f..8572334f912 100644 --- a/src/gallium/drivers/r300/r300_texture.c +++ b/src/gallium/drivers/r300/r300_texture.c @@ -959,9 +959,9 @@ struct pipe_resource* r300_texture_create(struct pipe_screen* screen, base->width0, base->height0, base->depth0, base->last_level, util_format_short_name(base->format)); - tex->buffer = rws->buffer_create(rws, 2048, - base->bind, + tex->buffer = rws->buffer_create(rws, 2048, base->bind, R300_DOMAIN_VRAM, tex->size); + rws->buffer_set_tiling(rws, tex->buffer, tex->pitch[0] * util_format_get_blocksize(tex->b.b.format), tex->microtile, |