summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-04-26 23:42:16 -0700
committerKenneth Graunke <[email protected]>2019-02-21 10:26:06 -0800
commit4510098b9c584be592116fb23627be388bf529f9 (patch)
tree59b129ca31006f2ca536ce369b554bbac386fe33 /src
parent6091dc470f4125435514ae91fb2a6229c4fe97da (diff)
iris: proper # of uniforms
or at least closer...we were using bytes, we want 256-bit units...
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/iris/iris_state.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c
index 941080e5c9a..a5e75fceb90 100644
--- a/src/gallium/drivers/iris/iris_state.c
+++ b/src/gallium/drivers/iris/iris_state.c
@@ -2132,8 +2132,9 @@ iris_upload_render_state(struct iris_context *ice,
continue;
struct iris_shader_state *shs = &ice->shaders.state[stage];
- shs->const_size = cbuf0->buffer_size;
- u_upload_data(ice->ctx.const_uploader, 0, shs->const_size, 32,
+ // XXX: DIV_ROUND_UP(prog_data->nr_params, 8)?
+ shs->const_size = DIV_ROUND_UP(cbuf0->buffer_size, 32);
+ u_upload_data(ice->ctx.const_uploader, 0, 32 * shs->const_size, 32,
cbuf0->user_buffer, &shs->const_offset,
&shs->push_resource);
}