From: Tom Stellard <thomas.stell...@amd.com> --- src/gallium/drivers/r600/compute_memory_pool.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/gallium/drivers/r600/compute_memory_pool.c b/src/gallium/drivers/r600/compute_memory_pool.c index 5e25a1d..9404f0a 100644 --- a/src/gallium/drivers/r600/compute_memory_pool.c +++ b/src/gallium/drivers/r600/compute_memory_pool.c @@ -53,21 +53,20 @@ static struct r600_texture * create_pool_texture(struct r600_screen * screen, return NULL; } memset(&templ, 0, sizeof(templ)); - templ.target = PIPE_TEXTURE_1D; + templ.target = PIPE_BUFFER; templ.format = PIPE_FORMAT_R32_UINT; templ.bind = PIPE_BIND_CUSTOM; templ.usage = PIPE_USAGE_IMMUTABLE; templ.flags = 0; - templ.width0 = size_in_dw; + templ.width0 = size_in_dw * 4; templ.height0 = 1; templ.depth0 = 1; templ.array_size = 1; - tex = (struct r600_texture *)r600_texture_create( + tex = (struct r600_texture *)r600_rat_buffer_create( &screen->screen, &templ); /* XXX: Propagate this error */ assert(tex && "Out of memory"); - tex->is_rat = 1; return tex; } -- 1.7.11.4 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev