diff options
author | Marek Olšák <[email protected]> | 2017-12-01 03:05:18 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-12-05 13:30:35 +0100 |
commit | dbad0acfaf2930648d85b49f9795c36e077888f8 (patch) | |
tree | 6a373b731c3db7a85102bce1338186144e575a3c /src/gallium/drivers/svga | |
parent | c7f84f6513f9cc9502b9cf3bdca9b95a6b87c98b (diff) |
gallium/u_upload_mgr: allow drivers to specify pipe_resource::flags
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga')
-rw-r--r-- | src/gallium/drivers/svga/svga_context.c | 6 | ||||
-rw-r--r-- | src/gallium/drivers/svga/svga_resource_texture.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/svga/svga_context.c b/src/gallium/drivers/svga/svga_context.c index 8640da95e82..546b9f48b13 100644 --- a/src/gallium/drivers/svga/svga_context.c +++ b/src/gallium/drivers/svga/svga_context.c @@ -144,13 +144,13 @@ svga_context_create(struct pipe_screen *screen, void *priv, unsigned flags) svga->pipe.stream_uploader = u_upload_create(&svga->pipe, 1024 * 1024, PIPE_BIND_VERTEX_BUFFER | PIPE_BIND_INDEX_BUFFER, - PIPE_USAGE_STREAM); + PIPE_USAGE_STREAM, 0); if (!svga->pipe.stream_uploader) goto cleanup; svga->pipe.const_uploader = u_upload_create(&svga->pipe, 128 * 1024, PIPE_BIND_CONSTANT_BUFFER, - PIPE_USAGE_STREAM); + PIPE_USAGE_STREAM, 0); if (!svga->pipe.const_uploader) goto cleanup; @@ -231,7 +231,7 @@ svga_context_create(struct pipe_screen *screen, void *priv, unsigned flags) svga->const0_upload = u_upload_create(&svga->pipe, CONST0_UPLOAD_DEFAULT_SIZE, PIPE_BIND_CONSTANT_BUFFER, - PIPE_USAGE_STREAM); + PIPE_USAGE_STREAM, 0); if (!svga->const0_upload) goto cleanup; diff --git a/src/gallium/drivers/svga/svga_resource_texture.c b/src/gallium/drivers/svga/svga_resource_texture.c index 9e4d6c9fb18..71b8ebe7d42 100644 --- a/src/gallium/drivers/svga/svga_resource_texture.c +++ b/src/gallium/drivers/svga/svga_resource_texture.c @@ -1332,7 +1332,7 @@ boolean svga_texture_transfer_map_upload_create(struct svga_context *svga) { svga->tex_upload = u_upload_create(&svga->pipe, TEX_UPLOAD_DEFAULT_SIZE, - 0, PIPE_USAGE_STAGING); + 0, PIPE_USAGE_STAGING, 0); return svga->tex_upload != NULL; } |