summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/radeonsi/si_state.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c
index 6948a74fbdd..0ee4af39151 100644
--- a/src/gallium/drivers/radeonsi/si_state.c
+++ b/src/gallium/drivers/radeonsi/si_state.c
@@ -3532,12 +3532,13 @@ static void si_set_vertex_buffers(struct pipe_context *ctx,
/* Zero-stride attribs only. */
assert(src->stride == 0);
- /* Assume the attrib has 4 dwords like the vbo
- * module. This is also a good upper bound.
+ /* Assume that the user_buffer comes from
+ * gl_current_attrib, which implies it has
+ * 4 * 8 bytes (for dvec4 attributes).
*
* Use const_uploader to upload into VRAM directly.
*/
- u_upload_data(sctx->b.b.const_uploader, 0, 16, 16,
+ u_upload_data(sctx->b.b.const_uploader, 0, 32, 32,
src->user_buffer,
&dsti->buffer_offset,
&dsti->buffer);