diff options
author | Constantine Charlamov <[email protected]> | 2017-02-21 07:31:30 +0300 |
---|---|---|
committer | Axel Davy <[email protected]> | 2017-02-25 09:31:10 +0100 |
commit | abb1c645c476b5dd289ce3efae0594f8796f9cf8 (patch) | |
tree | 5ec4c4b0ce0da6d30aeae1b7644d3871722c035b /src/gallium/state_trackers/nine/nine_ff.c | |
parent | 6b4bb24acfeec4d224acdffb73a5f5d810291a02 (diff) |
st/nine: make use of common uploaders v4
Make use of common uploaders that landed recently to Mesa
v2: fixed formatting, broken due to thunderbird configuration
v3: per Axel comment: added a comment into NineDevice9_DrawPrimitiveUP
v4: per Axel comment: changed style of the comment
Diffstat (limited to 'src/gallium/state_trackers/nine/nine_ff.c')
-rw-r--r-- | src/gallium/state_trackers/nine/nine_ff.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium/state_trackers/nine/nine_ff.c index 7cbe3f7d38c..279ba374896 100644 --- a/src/gallium/state_trackers/nine/nine_ff.c +++ b/src/gallium/state_trackers/nine/nine_ff.c @@ -2063,14 +2063,14 @@ nine_ff_update(struct NineDevice9 *device) if (!device->driver_caps.user_cbufs) { context->pipe_data.cb_vs_ff.buffer_size = cb.buffer_size; - u_upload_data(device->constbuf_uploader, + u_upload_data(device->context.pipe->const_uploader, 0, cb.buffer_size, device->constbuf_alignment, cb.user_buffer, &context->pipe_data.cb_vs_ff.buffer_offset, &context->pipe_data.cb_vs_ff.buffer); - u_upload_unmap(device->constbuf_uploader); + u_upload_unmap(device->context.pipe->const_uploader); context->pipe_data.cb_vs_ff.user_buffer = NULL; } else context->pipe_data.cb_vs_ff = cb; @@ -2087,14 +2087,14 @@ nine_ff_update(struct NineDevice9 *device) if (!device->driver_caps.user_cbufs) { context->pipe_data.cb_ps_ff.buffer_size = cb.buffer_size; - u_upload_data(device->constbuf_uploader, + u_upload_data(device->context.pipe->const_uploader, 0, cb.buffer_size, device->constbuf_alignment, cb.user_buffer, &context->pipe_data.cb_ps_ff.buffer_offset, &context->pipe_data.cb_ps_ff.buffer); - u_upload_unmap(device->constbuf_uploader); + u_upload_unmap(device->context.pipe->const_uploader); context->pipe_data.cb_ps_ff.user_buffer = NULL; } else context->pipe_data.cb_ps_ff = cb; |