iris: proper # of uniforms

or at least closer...we were using bytes, we want 256-bit units...
This commit is contained in:
Kenneth Graunke
2018-04-26 23:42:16 -07:00
parent 6091dc470f
commit 4510098b9c
+3 -2
View File
@@ -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);
}