diff options
author | Marek Olšák <[email protected]> | 2014-02-03 03:42:17 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-02-06 17:37:34 +0100 |
commit | c32114460dbb7f33885c181a0d7dee07b15b8751 (patch) | |
tree | fd6d0a17ed48e93e42d61138d0bef80d8577f0a8 /src/gallium/state_trackers/vega/renderer.c | |
parent | eeb5a4a50e1317a7f8d9e168c962ce3b1d7b36f9 (diff) |
gallium: remove PIPE_USAGE_STATIC
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/vega/renderer.c')
-rw-r--r-- | src/gallium/state_trackers/vega/renderer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/vega/renderer.c b/src/gallium/state_trackers/vega/renderer.c index 35795fc8682..931924ca407 100644 --- a/src/gallium/state_trackers/vega/renderer.c +++ b/src/gallium/state_trackers/vega/renderer.c @@ -173,7 +173,7 @@ static void renderer_set_mvp(struct renderer *renderer, pipe_resource_reference(&cbuf, NULL); cbuf = pipe_buffer_create(renderer->pipe->screen, PIPE_BIND_CONSTANT_BUFFER, - PIPE_USAGE_STATIC, + PIPE_USAGE_DEFAULT, sizeof(consts)); if (cbuf) { pipe_buffer_write(renderer->pipe, cbuf, @@ -476,7 +476,7 @@ static void renderer_set_custom_fs(struct renderer *renderer, pipe_resource_reference(&cbuf, NULL); cbuf = pipe_buffer_create(renderer->pipe->screen, - PIPE_BIND_CONSTANT_BUFFER, PIPE_USAGE_STATIC, + PIPE_BIND_CONSTANT_BUFFER, PIPE_USAGE_DEFAULT, const_buffer_len); pipe_buffer_write(renderer->pipe, cbuf, 0, const_buffer_len, const_buffer); |